updates fish config for emacs vterm
This commit is contained in:
parent
a27d8ded3c
commit
ee267b55a3
1 changed files with 3 additions and 12 deletions
|
|
@ -49,6 +49,9 @@
|
|||
|
||||
command fzf
|
||||
'';
|
||||
vterm_printf = ''
|
||||
printf "\e]%s\e\\" "$argv"
|
||||
'';
|
||||
};
|
||||
|
||||
interactiveShellInit = ''
|
||||
|
|
@ -77,18 +80,6 @@
|
|||
if test -d (brew --prefix)"/share/fish/vendor_completions.d"
|
||||
set -p fish_complete_path (brew --prefix)/share/fish/vendor_completions.d
|
||||
end
|
||||
|
||||
function vterm_printf;
|
||||
if begin; [ -n "$TMUX" ] ; and string match -q -r "screen|tmux" "$TERM"; end
|
||||
# tell tmux to pass the escape sequences through
|
||||
printf "\ePtmux;\e\e]%s\007\e\\" "$argv"
|
||||
else if string match -q -- "screen*" "$TERM"
|
||||
# GNU screen (screen, screen-256color, screen-256color-bce)
|
||||
printf "\eP\e]%s\007\e\\" "$argv"
|
||||
else
|
||||
printf "\e]%s\e\\" "$argv"
|
||||
end
|
||||
end
|
||||
'';
|
||||
|
||||
shellAbbrs = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue