feat(tmux): nicer window names

This commit is contained in:
Tine Jozelj 2023-04-29 19:53:37 +02:00
parent de9125dae2
commit 4005771984
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
4 changed files with 18 additions and 2 deletions

View file

@ -28,7 +28,8 @@ then
tmux \
nodejs \
ripgrep \
typos-bin
typos-bin \
python-libtmux
elif cat /etc/os-release | grep "Ubuntu" > /dev/null
then
echo "== ubuntu packages"

View file

@ -145,7 +145,8 @@ require'nvim-treesitter.configs'.setup {
"typescript",
"vim",
"yaml",
"glsl"
"glsl",
"glimmer",
},
-- Install languages synchronously (only applied to `ensure_installed`)
sync_install = false,

View file

@ -75,3 +75,11 @@ set-window-option -g clock-mode-style 24
set-option -g @prefix_highlight_fg 'colour255'
set-option -g @prefix_highlight_bg 'colour75'
set-option -g @prefix_highlight_copy_mode_attr 'fg=colour255,bg=colour176'
# Plugins
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
set -g @plugin 'ofirgall/tmux-window-name'
run '~/.tmux/plugins/tpm/tpm'

View file

@ -55,6 +55,12 @@ export EDITOR=vim
# Nix fix
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
# Tmux nicer window name
tmux-window-name() {
($TMUX_PLUGIN_MANAGER_PATH/tmux-window-name/scripts/rename_session_windows.py &)
}
add-zsh-hook chpwd tmux-window-name
# Starship
export STARSHIP_CONFIG=~/.starship.toml
eval "$(starship init zsh)"