zsh與oh-my-zsh使用~

Bash工具Zsh

安裝

關於插件及主題
插件地址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
    重啓就完事~~~

各種玩法詳見WiKihttps://github.com/robbyrussell/oh-my-zsh/wiki

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章