diff options
Diffstat (limited to 'tw/home/files/zshrc')
-rw-r--r-- | tw/home/files/zshrc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tw/home/files/zshrc b/tw/home/files/zshrc index 2382fa27..1d666f70 100644 --- a/tw/home/files/zshrc +++ b/tw/home/files/zshrc @@ -97,6 +97,9 @@ alias cdiff='\diff -s --color=always' alias ipy='ipython3 --autoindent --automagic --pprint --no-banner --no-confirm-exit --term-title --autocall=1 --colors=Neutral' alias rot13='caesar 13' alias wget='\wget --hsts-file="${XDG_CACHE_HOME:-$HOME/.cache}/wget-hsts"' +# Set RESTIC_REPOSITORY here, since we have to run pass(1) to generate it. +# RESTIC_PASSWORD_COMMAND is set separately, since it's a static string that restic will execute. +alias restic='RESTIC_REPOSITORY="rest:http://timo:$(pass computers/vin/restic-server/timo | head -1)@vin.wg:8181/timo/laptop" \restic' alias aurora="REQUESTS_CA_BUNDLE=${XDG_CONFIG_HOME:-$HOME/.config}/cern-ca-bundle.crt \aurora" alias aurora_admin="REQUESTS_CA_BUNDLE=${XDG_CONFIG_HOME:-$HOME/.config}/cern-ca-bundle.crt \aurora_admin" alias nomad='NOMAD_TOKEN=$(pass cern/ci/nomad-bootstrap-token | head -1) \nomad' |