diff --git a/.config/shell/functions b/.config/shell/functions index d38cb86..3b8c175 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -110,6 +110,10 @@ swap() { mv -n $1.tmp $2 } +p() { + pass "$@" || pass edit "$@" +} + # Task management & time tracking t() { if test "$#" -eq 0 && which tn >/dev/null diff --git a/.config/shell/projects b/.config/shell/projects index 8066e5b..ffa26f9 100644 --- a/.config/shell/projects +++ b/.config/shell/projects @@ -27,7 +27,7 @@ listprojects() { highlight() { echo "$1" } # Lists all projects and evaluates the given command. -alias p=projects +alias pr=projects projects() { test "$1" = "--all" && all="$1" && shift case $1 in