mirror of https://github.com/deuill/dotfiles.git
fish: Add support functions for vterm
This commit is contained in:
parent
b2649726b1
commit
defd582b8a
|
@ -9,6 +9,9 @@ end
|
|||
# Set default theme.
|
||||
source $HOME/.config/fish/themes/boxfish.fish
|
||||
|
||||
# Custom function definitions.
|
||||
source $HOME/.config/fish/functions/*.fish
|
||||
|
||||
# Custom aliases.
|
||||
alias dot 'git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
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
|
Loading…
Reference in New Issue