bash: sgc angelegt
This commit is contained in:
parent
aabb00096a
commit
33b239aee5
1 changed files with 17 additions and 0 deletions
|
@ -12,6 +12,23 @@ ssh() { #() ist die kurzform von function
|
|||
tmux rename-window "$*"
|
||||
command ssh "$@"
|
||||
}
|
||||
|
||||
|
||||
function sgc {
|
||||
case "$1" in
|
||||
--help)
|
||||
echo "Suche in der kompletten git-history nach '$1'"
|
||||
echo "sgc = search git commit"
|
||||
echo "sgc <suchbegriff>"
|
||||
;;
|
||||
"")
|
||||
echo "Suchbegriff fehlt..."
|
||||
;;
|
||||
*)
|
||||
git grep "$1" $(git rev-list --all)
|
||||
esac
|
||||
}
|
||||
|
||||
function m2m {
|
||||
if [[ "$1" == "--help" ]]; then
|
||||
echo "Sende Datei '$2' per Mail; Betreff = '$1'"
|
||||
|
|
Loading…
Reference in a new issue