[feat] add tmux shell autostart option

This commit is contained in:
jay 2023-02-27 00:08:31 +08:00
parent 282b32e7ad
commit f220a40935
2 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,10 @@
{{- $installGo := promptBool "installGo" true -}} {{- $installGo := promptBool "installGo" true -}}
{{- $installNode := promptBool "installNode" true -}} {{- $installNode := promptBool "installNode" true -}}
{{- $installRust := promptBool "installRust" true -}} {{- $installRust := promptBool "installRust" true -}}
{{- $enableTmux := promptBool "enableTmux" true -}}
[data.shell]
tmux = {{ $enableTmux }}
[data.gitconfig] [data.gitconfig]
email = {{ $email | quote }} email = {{ $email | quote }}

View File

@ -1,6 +1,9 @@
{{ if .shell.tmux }}
export ZSH_TMUX_AUTOSTART=true export ZSH_TMUX_AUTOSTART=true
export ZSH_TMUX_AUTOSTART_ONCE=true export ZSH_TMUX_AUTOSTART_ONCE=true
export ZSH_TMUX_AUTOCONNECT=true export ZSH_TMUX_AUTOCONNECT=true
{{ end }}
# install zinit # install zinit
# git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin # git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin
source ~/.zinit/bin/zinit.zsh source ~/.zinit/bin/zinit.zsh