mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-25 00:48:19 +00:00
feat(tmux): nicer window names
This commit is contained in:
parent
de9125dae2
commit
4005771984
4 changed files with 18 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue