Oh-my-zsh
https://segmentfault.com/a/1190000015283092
目录
lib 提供了核心功能的脚本库
tools 提供安装、升级等功能的快捷工具
plugins 自带插件的存在放位置
templates 自带模板的存在放位置
themes 自带主题文件的存在放位置
custom 个性化配置目录,自安装的插件和主题可放这里
推荐的插件
zsh-history-substring-search
https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/history-substring-search
zsh-syntax-highlighting
https://github.com/zsh-users/zsh-syntax-highlighting
zsh-autosuggestions
https://github.com/zsh-users/zsh-autosuggestions
推荐的主题
https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
配置文件:~/.zshrc
Tmux
配置文件:~/.tmux.conf
#Ctrl+b+r就可以重新加载配置文件
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
#自定义快捷键
bind h select-pane -L # 切换到左边的 Pane
bind j select-pane -D # 切换到下边的 Pane
bind k select-pane -U # 切换到上边的 Pane
bind l select-pane -R # 切换到右边的 Pane
#配置login shell为zsh
set -g default-shell /usr/bin/zsh
#配置状态栏前景色为白色
set -g status-fg white
#配置状态栏背景色为黑色
set -g status-bg black
#配置复制模式的按键为vi模式
setw -g mode-keys vi
#配置窗口自动重新编号
set -g renumber-windows on
#配置状态栏时间刷新间隔
set -g status-interval 60
#配置窗口编号起始值为1
set -g base-index 1
set -g pane-base-index 1
#关闭自动重命名窗口
setw -g automatic-rename off
set-option -g allow-rename off
#配置窗口utf8支持(新版本不再需要)
#setw -g utf8 on
#set -g status-utf8 on
#配置状态栏位置
set -g status-position bottom
#配置窗口名位置
set -g status-justify centre
#配置右侧显示内容
set-option -g status-right "#(date +%H:%M-%m/%d-%A)"
重新编写tmux.conf以后要Ctrl+b+r,如果没有作用要tmux kill-server一下
重新编写完zshrc以后要重启终端才会有用