From: Hendrik Jäger Date: Tue, 6 Mar 2018 14:00:37 +0000 (+0100) Subject: Add 'pass' functions X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fsecurosys;p=user%2Fhenk%2Fvcsh%2Fzsh.git Add 'pass' functions --- diff --git a/.zsh_aliases b/.zsh_aliases index c571aba..ef27e02 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -7,5 +7,4 @@ alias henk_rdesktop='rdesktop -u hendrik.jaeger -d TAM -p - -g 1920x1080 -z -P - alias hw1mpv='mpv --ao=alsa:device=[hw:1,0] --audio-format s32' alias ta='task' -#alias in='task in' alias ti='timew' diff --git a/.zsh_functions_taskwarrior b/.zsh_functions_taskwarrior index a30fd45..0a9bba7 100644 --- a/.zsh_functions_taskwarrior +++ b/.zsh_functions_taskwarrior @@ -6,7 +6,6 @@ in () { fi } -# taskwarrior tickle () { deadline=$1 shift diff --git a/.zsh_pass b/.zsh_pass index 5825daf..4a7e5de 100644 --- a/.zsh_pass +++ b/.zsh_pass @@ -1,7 +1,14 @@ +PERSONAL_PASSWORD_STORE_DIR=$HOME/LocalData/henksfiles/password-store compdef _pass mypass - -zstyle ':completion::complete:mypass::' prefix "$HOME/Data/henksfiles/password-store" +zstyle ':completion::complete:mypass::' prefix "$HOME/LocalData/henksfiles/password-store" mypass() { - PASSWORD_STORE_DIR=$HOME/Data/henksfiles/password-store pass $@ + PASSWORD_STORE_DIR=$HOME/LocalData/henksfiles/password-store pass $@ +} + +OLD_PASSWORD_STORE_DIR="$HOME/LocalData/securosys/secure/old_phrases" +compdef _pass oldpass +zstyle ':completion::complete:oldpass::' prefix "$OLD_PASSWORD_STORE_DIR" +oldpass() { + PASSWORD_STORE_DIR=$OLD_PASSWORD_STORE_DIR pass $@ }