summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorGioele De Vitti <gioele@devgioele.xyz>2022-11-11 18:38:57 +0100
committerGitHub <noreply@github.com>2022-11-11 17:38:57 +0000
commitd6616cf08b8b7af26050f993bd2c0b742fbe78fe (patch)
tree25b6a4bc6677c11bd668a6a062b15385e3212954 /.config
parent75bc064a2fba1561af61a75f584d3dac84630c4f (diff)
downloadeibhear-d6616cf08b8b7af26050f993bd2c0b742fbe78fe.tar.gz
eibhear-d6616cf08b8b7af26050f993bd2c0b742fbe78fe.tar.zst
eibhear-d6616cf08b8b7af26050f993bd2c0b742fbe78fe.zip
Stop trapping SIGINT to allow further use of Ctrl+C once lfcd is closed (#1231)
* Avoid expansion of file path containing spaces * Do not trap INT signal on lfcd * Untrap to stop trapping once lfcd quit * Revert "Avoid expansion of file path containing spaces" This reverts commit edcccf8f1bb0eb283aa332dc3a2d2b431eb6d189. * Trap SIGINT again
Diffstat (limited to '.config')
-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")"