diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2022-04-17 10:46:33 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2022-04-17 10:46:33 -0500 |
commit | 06b0c7eb739fd430aacbb46f183cea4aaf17300a (patch) | |
tree | b87398a7ed71ed22d4c43c42f274fbff12c1d578 /zsh/zscripts/lfub.zsh | |
parent | aff2302d113a71aee647ab71336e8d68bb844653 (diff) | |
download | dotconfig-06b0c7eb739fd430aacbb46f183cea4aaf17300a.tar.xz dotconfig-06b0c7eb739fd430aacbb46f183cea4aaf17300a.zip |
small changes to zsh and st configsa
Diffstat (limited to 'zsh/zscripts/lfub.zsh')
-rwxr-xr-x | zsh/zscripts/lfub.zsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zsh/zscripts/lfub.zsh b/zsh/zscripts/lfub.zsh index 309a0dc..83b00c1 100755 --- a/zsh/zscripts/lfub.zsh +++ b/zsh/zscripts/lfub.zsh @@ -9,14 +9,14 @@ cleanuplf() { } lfub() { - dircache=/tmp/lflastdir + dircache=/tmp/$USER-lflastdir lfopt="--last-dir-path=$dircache" if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then lf "$lfopt" "$@" else export FIFO_UEBERZUG="/tmp/ueberzug-$$" mkfifo "$FIFO_UEBERZUG" - (ueberzug layer -s <"$FIFO_UEBERZUG" -p json &) >/dev/null 2>&1 + ueberzug layer -s <"$FIFO_UEBERZUG" -p json & exec 3>"$FIFO_UEBERZUG" trap cleanuplf HUP INT QUIT TERM PWR EXIT lf "$lfopt" "$@" 3>&- @@ -24,4 +24,4 @@ lfub() { [ -f "$dircache" ] && dir="$(cat "$dircache")" && [ -d "$dir" ] && cd "$dir" } -alias "lf=lfub" +alias lf="lfub" |