Skip to content

Instantly share code, notes, and snippets.

@d-kuro
Last active October 17, 2018 11:07
Show Gist options
  • Save d-kuro/01513087559ac4c3d305f6485c58b7ad to your computer and use it in GitHub Desktop.
Save d-kuro/01513087559ac4c3d305f6485c58b7ad to your computer and use it in GitHub Desktop.
zsh に移行した

zsh に移行した

install zsh

$ brew install zsh

install oh my zsh

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

change login shell

$ chsh -s /bin/zsh

install iTerm2

iTerm2 - macOS Terminal Replacement

install powerline font

powerline/fonts: Patched fonts for Powerline users.

$ git clone https://github.com/powerline/fonts
$ cd fonts
$ ./install.sh

setting iTerm2 fonts

Preferences -> Profiles -> Text

Use fonts for Inconsolata for Powerline.

agnoster.zsh-theme

image

agnoster/agnoster-zsh-theme: A ZSH theme designed to disclose information contextually, with a powerline aesthetic

Edit .zshrc

ZSH_THEME="agnoster"

# add line
# default user
prompt_context(){}

read .bash_profile

Edit .zshrc

source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment