diff --git a/.tmux.conf b/.tmux.conf new file mode 100755 index 0000000..d2c4320 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,17 @@ +set-option -sa terminal-overrides ",xterm*:Tc" +# set-option -g status-position top + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'dracula/tmux' + +set -g @dracula-plugins "cpu-usage ram-usage" +set -g @dracula-cpu-usage-colors "green dark_gray" +set -g @dracula-show-powerline true +set -g @dracula-show-flags true +set -g @dracula-show-left-icon hostname + +bind -n M-H previous-window +bind -n M-L next-window + +run '~/.config/tmux/plugins/tpm/tpm' diff --git a/.zshrc b/.zshrc index ac997e2..e99bb37 100644 --- a/.zshrc +++ b/.zshrc @@ -7,7 +7,7 @@ fi # Set ZINIT Home ZINIT_HOME="${HOME}/.config/zinit/zinit.git" -ZSH_TMUX_AUTOSTART=true +# ZSH_TMUX_AUTOSTART=true # Download ZINIT if [ ! -f "${ZINIT_HOME}/zinit.zsh" ]; then @@ -24,7 +24,9 @@ if [ ! -d "${TMUX_HOME}/plugins/tpm" ]; then git clone https://github.com/tmux-plugins/tpm $TMUX_HOME/plugins/tpm fi -tmux source ${TMUX_HOME}/tmux.conf +if { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then + tmux source ${TMUX_HOME}/tmux.conf +fi #extend path path=(~/bin $path) @@ -41,7 +43,7 @@ zinit light zsh-users/zsh-syntax-highlighting zinit light zsh-users/zsh-completions zinit light zsh-users/zsh-autosuggestions -zinit snippet OMZP::tmux +# zinit snippet OMZP::tmux # Load completions autoload -U compinit && compinit