diff --git a/commonshrc b/commonshrc index e28032a..9a7394c 100644 --- a/commonshrc +++ b/commonshrc @@ -69,3 +69,8 @@ test -x /usr/bin/lesspipe && eval `lesspipe` test -x /usr/bin/vim && export EDITOR=/usr/bin/vim export MPD_HOST=127.0.0.1 MPD_PORT=6600 + +# passc +passc() { + pass show "$1" | (read i; cat; echo "$i" | xclip -l 1) +} diff --git a/zshrc b/zshrc index f1927cf..d99e4a0 100644 --- a/zshrc +++ b/zshrc @@ -18,6 +18,8 @@ alias gm=gm # graphicsmagick alias l='ls -lha' alias ar=ar +compdef passc=pass + # History setopt APPEND_HISTORY SHARE_HISTORY EXTENDED_HISTORY INC_APPEND_HISTORY \ HIST_IGNORE_ALL_DUPS HIST_FIND_NO_DUPS HIST_IGNORE_SPACE