From 5999f1756c68dc1af43185f01d41c123974e2a7d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 2 Nov 2019 21:48:15 +1300 Subject: [PATCH 1/1] remove getpw override --- .gitignore.d/zsh | 1 - .zsh/zshrc/99-getpw-override | 12 ------------ 2 files changed, 13 deletions(-) delete mode 100644 .zsh/zshrc/99-getpw-override diff --git a/.gitignore.d/zsh b/.gitignore.d/zsh index 9df5f91..17e6b6f 100644 --- a/.gitignore.d/zsh +++ b/.gitignore.d/zsh @@ -102,7 +102,6 @@ !/.zsh/zshrc/90-ls_on_chdir !/.zsh/zshrc/90-run-help !/.zsh/zshrc/95-watch-users -!/.zsh/zshrc/99-getpw-override !/.zsh/zshrc/99-prefill_prompt !/.zsh/zshrc/99-prompt_setup !/.zsh/zshrc/.gitignore diff --git a/.zsh/zshrc/99-getpw-override b/.zsh/zshrc/99-getpw-override deleted file mode 100644 index 4673014..0000000 --- a/.zsh/zshrc/99-getpw-override +++ /dev/null @@ -1,12 +0,0 @@ -unalias getpw 2>/dev/null -getpw() { - if ! pass -c "$@"; then - if old-getpw "$@"; then - echo >&2 "Please migrate the password for $@" - genpw "$@" - echo >&2 "Old password is now in X paste buffer, new one in clipboard" - fi - fi -} -autoload -zU compdef -compdef _pass getpw -- 2.39.5