]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
Add 'pass' functions securosys
authorHendrik Jäger <hendrik@securosys.ch>
Tue, 6 Mar 2018 14:00:37 +0000 (15:00 +0100)
committerHendrik Jäger <hendrik@securosys.ch>
Tue, 6 Mar 2018 14:02:57 +0000 (15:02 +0100)
.zsh_aliases
.zsh_functions_taskwarrior
.zsh_pass

index c571abaff4ca202a18186b11861956b6b054d618..ef27e025fcbad186ea9c8c02cfe59b9a3d28705f 100644 (file)
@@ -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'
index a30fd4558f0e1293edfd0a59f840784bb0ef08d7..0a9bba736c1724124e403c743b2be3e8293ac956 100644 (file)
@@ -6,7 +6,6 @@ in () {
     fi
 }
 
-# taskwarrior
 tickle () {
     deadline=$1
     shift
index 5825daf93204ae5941f6563248f0ed3a41c32cd6..4a7e5de8565fba5933e99f11506e9b3ad97a6edb 100644 (file)
--- 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 $@
 }