my_debian_config/.bash_aliases

21 lines
389 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
xmlpretty() {
local ORIGINAL=$1
local FILENAME=${ORIGINAL%.xml}
local FINAL=${FILENAME##*/}
xmllint --format "$1" --output ${FINAL}.pretty.xml
}