mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Remove workarounds for Emacs ansi-term
I'm not sure if it's worth supporting a terminal that mishandles unknown OSC and CSI sequences. Better to fix the terminal. Note that there are Emacs terminals available that don't have this problems; for example "vterm".
This commit is contained in:
parent
af1b599818
commit
9870faa8be
|
@ -232,7 +232,7 @@ end" >$__fish_config_dir/config.fish
|
|||
or test "$TERM_PROGRAM" = iTerm.app
|
||||
end
|
||||
function __update_cwd_osc --on-variable PWD --description 'Notify capable terminals when $PWD changes'
|
||||
if status --is-command-substitution || set -q INSIDE_EMACS
|
||||
if status --is-command-substitution
|
||||
return
|
||||
end
|
||||
printf \e\]7\;file://%s%s\a $hostname (string escape --style=url $PWD)
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
function fish_title
|
||||
# emacs' "term" is basically the only term that can't handle it.
|
||||
if not set -q INSIDE_EMACS; or string match -vq '*,term:*' -- $INSIDE_EMACS
|
||||
# If we're connected via ssh, we print the hostname.
|
||||
set -l ssh
|
||||
set -q SSH_TTY
|
||||
|
@ -17,5 +15,4 @@ function fish_title
|
|||
end
|
||||
echo -- $ssh (string sub -l 20 -- $command) (prompt_pwd -d 1 -D 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user