add pa extension
j3s j3s@c3f.net
Thu, 04 Feb 2021 17:52:46 -0600
1 files changed,
15 insertions(+),
0 deletions(-)
jump to
M
.env
→
.env
@@ -2,6 +2,21 @@ #!/bin/sh
PS1='$(prompt) \$ ' +# extend pa for git stuffs +pa() { + case $1 in + g*) + cd "${PA_DIR:=${XDG_DATA_HOME:=$HOME/.local/share}/pa}" + shift + git "$@" + ;; + + *) + command pa "$@" + ;; + esac +} + # needed for sway if test -z "${XDG_RUNTIME_DIR}"; then export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir