mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-28 18:11:17 +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 \
|
tmux \
|
||||||
nodejs \
|
nodejs \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
typos-bin
|
typos-bin \
|
||||||
|
python-libtmux
|
||||||
elif cat /etc/os-release | grep "Ubuntu" > /dev/null
|
elif cat /etc/os-release | grep "Ubuntu" > /dev/null
|
||||||
then
|
then
|
||||||
echo "== ubuntu packages"
|
echo "== ubuntu packages"
|
||||||
|
|
|
@ -145,7 +145,8 @@ require'nvim-treesitter.configs'.setup {
|
||||||
"typescript",
|
"typescript",
|
||||||
"vim",
|
"vim",
|
||||||
"yaml",
|
"yaml",
|
||||||
"glsl"
|
"glsl",
|
||||||
|
"glimmer",
|
||||||
},
|
},
|
||||||
-- Install languages synchronously (only applied to `ensure_installed`)
|
-- Install languages synchronously (only applied to `ensure_installed`)
|
||||||
sync_install = false,
|
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_fg 'colour255'
|
||||||
set-option -g @prefix_highlight_bg 'colour75'
|
set-option -g @prefix_highlight_bg 'colour75'
|
||||||
set-option -g @prefix_highlight_copy_mode_attr 'fg=colour255,bg=colour176'
|
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
|
# Nix fix
|
||||||
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
|
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
|
# Starship
|
||||||
export STARSHIP_CONFIG=~/.starship.toml
|
export STARSHIP_CONFIG=~/.starship.toml
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
Loading…
Reference in a new issue