From: martin f. krafft Date: Thu, 5 Dec 2019 09:36:30 +0000 (+0100) Subject: simplify: remove pw length arg X-Git-Url: https://git.madduck.net/etc/pass.git/commitdiff_plain/7a4b1e3a23607da3e669529c6640284ad481d068?ds=inline simplify: remove pw length arg --- diff --git a/.zsh/aliases/genpw b/.zsh/aliases/genpw index c497602..a2f7545 100644 --- a/.zsh/aliases/genpw +++ b/.zsh/aliases/genpw @@ -1 +1 @@ -() { EDITOR="genpw-editor $2" pass edit "$1"; } +() { EDITOR="genpw-editor" pass edit "$1"; } diff --git a/.zsh/aliases/pmnpw b/.zsh/aliases/pmnpw index 2ff7e1a..a6d22c4 100644 --- a/.zsh/aliases/pmnpw +++ b/.zsh/aliases/pmnpw @@ -1 +1 @@ -() { case "$1" in (*@*) genpw ${1%%@*}/$1;; (*) genpw $1/${1}@pobox.madduck.net ${@:2};; esac } +() { case "$1" in (*@*) genpw ${1%%@*}/$1;; (*) genpw $1/${1}@pobox.madduck.net;; esac }