From 73f2af2846ccba77d94af10a620dbf37bd19be3a Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 21 Apr 2023 22:20:23 +0200 Subject: Configure restic environment --- tw/home/files/zshrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tw/home/files') 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' -- cgit v1.2.3