Add shfmt

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-10 12:51:10 +01:00
parent efc8bc4f3c
commit 17affc8d46
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 2 additions and 0 deletions

View file

@ -32,6 +32,7 @@ packages:
- name: github.com/Luzifer/str2hex
- name: github.com/Luzifer/update-gotools
- name: github.com/Luzifer/worktime
- name: github.com/mvdan/sh/cmd/shfmt
- name: github.com/peco/peco/cmd/peco
version: v0.5.2

View file

@ -38,6 +38,7 @@ alias mysql='docker run --rm -ti -v $(pwd):$(pwd) -w $(pwd) mysql bash'
alias mysqlpw='python3 -c "import hashlib; import sys; print(\"*{}\".format(hashlib.sha1(hashlib.sha1(sys.argv[1].encode(\"utf-8\")).digest()).hexdigest().upper()))"'
alias :q='exit'
alias share='AWS_REGION=us-east-1 vault2env --key=secret/aws/private -- share --bucket=share-luzifer-io-s3bucket-164ztrtyq1f35 --base-path="file/{{ printf \"%.6s\" .Hash}}" --base-url="https://knut.cc/#"'
alias shfmt='shfmt -i 2 -d -s -ci'
## Initialize GPG agent
source ${HOME}/.zsh/gpg-agent.plugin.zsh