From 17affc8d4641909bc6766a2e7680a6ed16b130f7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 10 Mar 2018 12:51:10 +0100 Subject: [PATCH] Add shfmt Signed-off-by: Knut Ahlers --- .config/gotools.yml | 1 + .zsh/config.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.config/gotools.yml b/.config/gotools.yml index c2087f6..8704a60 100644 --- a/.config/gotools.yml +++ b/.config/gotools.yml @@ -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 diff --git a/.zsh/config.sh b/.zsh/config.sh index b3f1d32..e64ba63 100644 --- a/.zsh/config.sh +++ b/.zsh/config.sh @@ -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