2016-04-11 16:56:48 +02:00
|
|
|
alias gogit='cd /var/www/git/'
|
|
|
|
alias gowww='cd /var/www/'
|
|
|
|
|
|
|
|
gg () {
|
|
|
|
cd /var/www/git/ && cd "$@" && git st
|
|
|
|
}
|
|
|
|
|
|
|
|
_git_add_complete() {
|
|
|
|
|
2016-04-11 16:58:39 +02:00
|
|
|
COMPREPLY+=( $( ls /var/www/git/ | grep "$2" ) )
|
2016-04-11 16:56:48 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
complete -F _git_add_complete gg
|
|
|
|
|
2016-04-29 15:14:20 +02:00
|
|
|
xmlpretty() {
|
|
|
|
local ORIGINAL=$1
|
|
|
|
local FILENAME=${ORIGINAL%.xml}
|
|
|
|
local FINAL=${FILENAME##*/}
|
|
|
|
xmllint --format "$1" --output ${FINAL}.pretty.xml
|
|
|
|
}
|