my_debian_config/.bash_aliases
2016-04-11 16:58:39 +02:00

16 lines
229 B
Bash

alias gogit='cd /var/www/git/'
alias gowww='cd /var/www/'
gg () {
cd /var/www/git/ && cd "$@" && git st
}
_git_add_complete() {
COMPREPLY+=( $( ls /var/www/git/ | grep "$2" ) )
}
complete -F _git_add_complete gg