vterm setup

This commit is contained in:
Dennis Schoepf 2025-09-09 23:08:45 +02:00
parent 0c29416353
commit 9c026b26c2
2 changed files with 15 additions and 0 deletions

View file

@ -61,6 +61,9 @@
imagemagick
restic
coreutils-prefixed
# Packages necessary for vterm
cmake
libtool
];
# Homebrew

View file

@ -77,6 +77,18 @@
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 = {