config/shell: introduce p alias for pass
This commit is contained in:
parent
49179953f6
commit
4f9feb3d47
|
@ -110,6 +110,10 @@ swap() {
|
||||||
mv -n $1.tmp $2
|
mv -n $1.tmp $2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p() {
|
||||||
|
pass "$@" || pass edit "$@"
|
||||||
|
}
|
||||||
|
|
||||||
# Task management & time tracking
|
# Task management & time tracking
|
||||||
t() {
|
t() {
|
||||||
if test "$#" -eq 0 && which tn >/dev/null
|
if test "$#" -eq 0 && which tn >/dev/null
|
||||||
|
|
|
@ -27,7 +27,7 @@ listprojects() {
|
||||||
highlight() { echo "[4m$1[0m" }
|
highlight() { echo "[4m$1[0m" }
|
||||||
|
|
||||||
# Lists all projects and evaluates the given command.
|
# Lists all projects and evaluates the given command.
|
||||||
alias p=projects
|
alias pr=projects
|
||||||
projects() {
|
projects() {
|
||||||
test "$1" = "--all" && all="$1" && shift
|
test "$1" = "--all" && all="$1" && shift
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
Loading…
Reference in New Issue