my_debian_config/.bash_aliases
Clement Desmidt af4b2ae6ac first commit
2016-04-11 16:56:48 +02:00

16 lines
244 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/users/cdesmidt/git/ | grep "$2" ) )
}
complete -F _git_add_complete gg