Skip to content

Instantly share code, notes, and snippets.

@Svtter
Created September 1, 2016 08:16
Show Gist options
  • Save Svtter/3ba7f272a548e28a05a9679f3d980520 to your computer and use it in GitHub Desktop.
Save Svtter/3ba7f272a548e28a05a9679f3d980520 to your computer and use it in GitHub Desktop.
zsh configuration
# 使用ctrl-a
set -g prefix C-a
unbind C-b
# bind a reload key
# bind R source-file ~/.tmux.conf ; display-message "Config reloaded.."
# 状态栏
# 颜色
set -g status-bg black
set -g status-fg white
# 对齐方式
set-option -g status-justify centre
# 左下角
set-option -g status-left '#[bg=black,fg=green][#[fg=cyan]#S#[fg=green]]'
set-option -g status-left-length 20
# 窗口列表
setw -g automatic-rename on
set-window-option -g window-status-format '#[dim]#I:#[default]#W#[fg=grey,dim]'
set-window-option -g window-status-current-format '#[fg=cyan,bold]#I#[fg=blue]:#[fg=cyan]#W#[fg=dim]'
# 右下角
set -g status-right '#[fg=green][#[fg=cyan]%Y-%m-%d#[fg=green]]'
# vi 模式
setw -g mode-keys vi
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
#!/bin/zsh
export XDG_CONFIG_HOME=$HOME/.config
export TERM=xterm-256color
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
alias git clone=gl
alias py=python
setopt correct
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment