Giter Site home page Giter Site logo

ubuntu-install-oh-my-zsh's Introduction

ubuntu 安裝 zsh + oh my zsh 筆記

1.安裝 zsh

1.從 Repository 安裝
#sudo apt-get install zsh
2.更換 Shell
#chsh -s /bin/zsh

2.安裝 oh my zsh

#curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

3.變更 theme

變更 theme 為 agnoster
#sudo vi ~/.zshrc
找到 ZSH_THEME 設定為 agnoster

下載主題顏色

4.例外狀況,如果有出現 ? 或沒有正常顯示,至 https://gist.github.com/agnoster/3712874 更新 agnoster 的 theme 內容

處理字體

#sudo vi ~/.oh-my-zsh/themes/agnoster.zsh-theme
接著將內容替換掉,done
Symbol powerline vim-powerline
separator.left '' (\ue0b0) '⮀' (\u2b80)
separator.right '' (\ue0b2) '⮂' (\u2b82)
subseparator.left '' (\ue0b1) '⮁' (\u2b81)
subseparator.right '' (\ue0b3) '⮃' (\u2b83)
branch symbol '' (\ue0a0) '⭠' (\u2b60)
readonly symbol '' (\ue0a2) '⭤' (\u2b64)
linecolumn symbol '' (\ue0a1) '⭡' (\u2b81)

變更 sh

chsh -s /bin/zsh

You can confirm the location of zsh by running whereis zsh, or alternatively simply run chsh -s $(which zsh)

If you want to change the shell for a user account other than the one you're logged into, you'll need to run it as root, so to change john's shell, do: sudo chsh -s $(which zsh) john

查看目前 sh

echo $SHELL

ubuntu-install-oh-my-zsh's People

Contributors

machiko avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.