fixed tmux
This commit is contained in:
17
.tmux.conf
Executable file
17
.tmux.conf
Executable file
@@ -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'
|
||||||
8
.zshrc
8
.zshrc
@@ -7,7 +7,7 @@ fi
|
|||||||
|
|
||||||
# Set ZINIT Home
|
# Set ZINIT Home
|
||||||
ZINIT_HOME="${HOME}/.config/zinit/zinit.git"
|
ZINIT_HOME="${HOME}/.config/zinit/zinit.git"
|
||||||
ZSH_TMUX_AUTOSTART=true
|
# ZSH_TMUX_AUTOSTART=true
|
||||||
|
|
||||||
# Download ZINIT
|
# Download ZINIT
|
||||||
if [ ! -f "${ZINIT_HOME}/zinit.zsh" ]; then
|
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
|
git clone https://github.com/tmux-plugins/tpm $TMUX_HOME/plugins/tpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tmux source ${TMUX_HOME}/tmux.conf
|
if { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
|
||||||
|
tmux source ${TMUX_HOME}/tmux.conf
|
||||||
|
fi
|
||||||
|
|
||||||
#extend path
|
#extend path
|
||||||
path=(~/bin $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-completions
|
||||||
zinit light zsh-users/zsh-autosuggestions
|
zinit light zsh-users/zsh-autosuggestions
|
||||||
|
|
||||||
zinit snippet OMZP::tmux
|
# zinit snippet OMZP::tmux
|
||||||
|
|
||||||
# Load completions
|
# Load completions
|
||||||
autoload -U compinit && compinit
|
autoload -U compinit && compinit
|
||||||
|
|||||||
Reference in New Issue
Block a user