mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
Use the new fish_exit event
This commit is contained in:
@@ -252,7 +252,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
end
|
||||
|
||||
# Disable BP before every command because that might not support it.
|
||||
function __fish_disable_bracketed_paste --on-event fish_preexec --on-process-exit %self
|
||||
function __fish_disable_bracketed_paste --on-event fish_preexec --on-event fish_exit
|
||||
printf "\e[?2004l"
|
||||
end
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ end
|
||||
function __trap_switch
|
||||
switch $argv[1]
|
||||
case EXIT exit
|
||||
echo --on-process-exit %self
|
||||
echo --on-event fish_exit
|
||||
|
||||
case '*'
|
||||
echo --on-signal $argv[1]
|
||||
|
||||
Reference in New Issue
Block a user