sudo apt-get install zsh
设置默认shell
chsh -s $(which zsh)
sudo sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 添加conda
vim ~/.zshrc
# 写入conda 位置
复制.bashrc中conda initialize内容即可
# 激活配置
source ~/.zshrc
安装:
- git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
- sudo apt install zsh
- cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
- zsh命令进入环境
- 修改~/.tmux.conf,tmux默认zsh登陆
# open/split windows in the same dir
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
set -g default-shell /bin/zsh
其中【b】的目的在于新开一个子页后默认路径的位置会是你当前的路径
参考:https://zhuanlan.zhihu.com/p/58073103