From 4f9feb3d4762b07bf5b25de20998a6fae515d429 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 5 May 2021 08:56:23 +0200 Subject: [PATCH] config/shell: introduce p alias for pass --- .config/shell/functions | 4 ++++ .config/shell/projects | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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