zsh: Add yaml/json converter helpers

This commit is contained in:
2019-12-18 10:10:40 +01:00
parent 04f2a45900
commit 61150df5d7

View File

@@ -66,7 +66,8 @@ alias twa="task add"
alias twd="task done" alias twd="task done"
alias inbox="task add +inbox" alias inbox="task add +inbox"
alias yaml2js="python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)'" alias yaml2json="python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)'"
alias json2yaml="python -c 'import sys, yaml, json; yaml.safe_dump(json.loads(sys.stdin.read()), stream=sys.stdout)'"
alias currentbranch='git rev-parse --abbrev-ref HEAD' alias currentbranch='git rev-parse --abbrev-ref HEAD'
alias gpush='git push origin $(currentbranch)' alias gpush='git push origin $(currentbranch)'