From a11dd3ae33a048a41ae39e439493db2665184b10 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 6 Jan 2025 10:42:26 -0800 Subject: [PATCH] Use nushell in tmux if it is in the path --- dot_config/tmux/tmux.conf.tmpl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dot_config/tmux/tmux.conf.tmpl b/dot_config/tmux/tmux.conf.tmpl index cabeb83..e04ee37 100644 --- a/dot_config/tmux/tmux.conf.tmpl +++ b/dot_config/tmux/tmux.conf.tmpl @@ -1,6 +1,6 @@ -# chezmoi:template:left-delimiter="# {{" -# {{- /* vim: set filetype=tmux: */ -}} -# {{- if lookPath "tmux" -}} +# chezmoi:template:left-delimiter="#{{" +#{{- /* vim: set filetype=tmux: */ -}} +#{{- if lookPath "tmux" -}} ################################################################################ # Base configuration ################################################################################ @@ -32,12 +32,16 @@ set -g visual-activity on set-option -g mouse on +#{{- if lookPath "nu" }} +set-option -g default-shell "#{{ lookPath "nu" | replace .chezmoi.homeDir "$HOME" }}" +#{{- end }} + ################################################################################ # Colors ################################################################################ -# {{ if eq .chezmoi.os "darwin" -}} +#{{ if eq .chezmoi.os "darwin" -}} run $XDG_CONFIG_HOME/tmux/plugins/macos-color-workaround -# {{ end }} +#{{ end }} set -g status-fg white set -g status-bg black @@ -90,4 +94,4 @@ set -g @prefix_highlight_show_sync_mode 'on' set -g @prefix_highlight_sync_mode_attr 'fg=black,bg=green' # default is 'fg=default,bg=yellow' run $XDG_CONFIG_HOME/tmux/plugins/tpm/tpm -# {{- end }} +#{{- end }}