summaryrefslogtreecommitdiffstats
path: root/.config/zsh
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-01-15 08:23:54 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-01-15 08:23:54 -0500
commit9385a569fe356db706ed268a87e77cfa760d58dd (patch)
tree2c8d3b6e3e72f6dd2e211a5cf380baf301d2f545 /.config/zsh
parent5c52bd63394aafbb93b6713b74c148e5a4ec17c7 (diff)
parent5c262da7c39fb0b3cd52acca36f45d4e7c629d37 (diff)
downloadeibhear-9385a569fe356db706ed268a87e77cfa760d58dd.tar.gz
eibhear-9385a569fe356db706ed268a87e77cfa760d58dd.tar.zst
eibhear-9385a569fe356db706ed268a87e77cfa760d58dd.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 7e96734..c46f51d 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -54,7 +54,7 @@ preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
# Use lf to switch directories and bind it to ctrl-o
lfcd () {
tmp="$(mktemp -uq)"
- trap 'rm -f $tmp >/dev/null 2>&1' HUP INT QUIT TERM PWR EXIT
+ trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM PWR EXIT' HUP INT QUIT TERM PWR EXIT
lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"