config/shell: introduce p alias for pass

This commit is contained in:
xeruf 2021-05-05 08:56:23 +02:00
parent 49179953f6
commit 4f9feb3d47
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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