Add some useful aliases

This commit is contained in:
2018-01-29 12:42:35 +01:00
parent 91a0b94f21
commit c2b65731f7
2 changed files with 7 additions and 0 deletions

View File

@@ -14,3 +14,5 @@ for file in "${_zshdir}"/* ; do
source "$file"
fi
done
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

View File

@@ -58,3 +58,8 @@ alias cl="clear"
alias nocolor="sed -r \"s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g\""
alias ip="ip -color"
alias yaml2js="python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)'"
alias currentbranch='git rev-parse --abbrev-ref HEAD'
alias gpush='git push origin $(currentbranch)'