diff --git a/zsh/zshrc b/zsh/zshrc index 016df15..77e1e71 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -14,3 +14,5 @@ for file in "${_zshdir}"/* ; do source "$file" fi done + +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh diff --git a/zsh/zshrc.d/20_aliases.sh b/zsh/zshrc.d/20_aliases.sh index 43b9724..21ac07d 100644 --- a/zsh/zshrc.d/20_aliases.sh +++ b/zsh/zshrc.d/20_aliases.sh @@ -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)'