mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-11 12:55:27 +08:00
Revert "Notify vte-based terminals when a command completes."
Backing out fix for #2096 until we know how to avoid spamming other terminals (#2102) This reverts commit 5c4acc8ee1485e40b00ea0578aeff338078cfb8b.
This commit is contained in:
parent
5c4acc8ee1
commit
3a190bbe49
@ -196,16 +196,6 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
end
|
||||
end
|
||||
|
||||
# Notify vte-based terminals when a command completes
|
||||
if test "$VTE_VERSION" -ge 3405
|
||||
switch "$TERM"
|
||||
case 'vte*' 'xterm*'
|
||||
function __notify_vte_command_completed --on-event fish_postexec --description 'Notify VTE of command completion'
|
||||
printf '\e]777;notify;Command completed;%s\a' (echo "$argv" | cat --show-nonprinting | tr --delete \;)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# The first time a command is not found, look for command-not-found
|
||||
# This is not cheap so we try to avoid doing it during startup
|
||||
# config.fish already installed a handler for noninteractive command-not-found,
|
||||
|
Loading…
x
Reference in New Issue
Block a user