improve iterm shell + tmux integration

This commit is contained in:
Gabriel Augendre 2024-11-20 03:20:36 +01:00
parent fa7faa1315
commit a2ac996025
3 changed files with 6 additions and 11 deletions

View file

@ -42,6 +42,7 @@ set -gx PIPX_DEFAULT_PYTHON "/Users/gaugendre/.local/share/mise/installs/python/
set -gx PIP_REQUIRE_VIRTUALENV true
set -gx MISE_PYTHON_VENV_AUTO_CREATE true
set -gx ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX YES
test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish
set -gx EDITOR nvim

View file

@ -86,3 +86,8 @@ setw -g window-status-bell-style 'fg=black bg=yellow bold'
# messages
set -g message-style 'fg=black bg=white bold'
# https://gitlab.com/gnachman/iterm2/-/wikis/tmux-Integration-Best-Practices#i-want-to-see-tmux-window-titles-as-tabwindow-titles-in-iterm2
set-option -g set-titles on
set-option -g set-titles-string '#T'

View file

@ -8,17 +8,6 @@ Host ubuntu
ControlMaster auto
ControlPath ~/.ssh/control-%C
ControlPersist 4h
RequestTTY yes
RemoteCommand tmux -CC new -A -s tmssh
Host ubuntu-no-tmux
Hostname 192.168.0.6
User gaugendre
ForwardAgent yes
ControlMaster auto
ControlPath ~/.ssh/control-%C
ControlPersist 4h
RequestTTY yes
Host hass
Hostname 192.168.0.9