Bash工具Zsh
安裝
- zsh官網:http://www.zsh.org/
- oh-my-zsh地址:https://github.com/robbyrussell/oh-my-zsh
- 安裝zsh
yum -y install zsh
- 安裝zsh擴展 Oh my zsh,需要git.
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
- 配置文件都在.zshrc文件中~
vi .zshrc
關於插件及主題
插件地址:https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins
主題地址:https://github.com/robbyrussell/oh-my-zsh/wiki/themes
推薦的幾個插件~
O.自動補全:https://github.com/zsh-users/zsh-autosuggestions
- 安裝
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
在~/.zshrc的plugins中添加。
plugins=(zsh-autosuggestions)
1.語法高亮:https://github.com/zsh-users/zsh-syntax-highlighting
- 安裝
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
在~/.zshrc的plugins中添加。這個要放最後!
plugins=( ... zsh-syntax-highlighting)
2.自動解壓
- 介紹
快捷命令爲x,x後跟要解壓的文件即可
例如:x test.tar.gz - 安裝
在~/.zshrc的plugins中添加。
plugins=(extract)
3.自動跳轉
- 介紹
快捷命令爲z,z後跟要去的文件夾,當然之前要用cd跳轉過。
例如:要去 /usr/bin 可使用 z bin. - 安裝
在~/.zshrc的plugins中添加。
plugins=(z)
主題
主題就用Random,每次就隨機就好了!
- 切換默認bash爲zsh
usermod -s /bin/zsh username
重啓就完事~~~