Louis does dotfiles... again
Switching to Zsh
First I created a fork of Oh My Zsh and added it as a submodule to my existing dotfiles repository under a directory named .oh-my-zsh:
$ cd $HOME/Dropbox/dotfiles $ git submodule add https://github.com/ltiao/oh-my-zsh.git .oh-my-zsh
Since my dotfiles repo is a fork of Mathias Bynen's dotfiles, which is primarily for bash, there shouldn't be any conflicts. In fact, we should be able to switch seamlessly between using zsh and bash as the default shell.
$ cp .oh-my-zsh/templates/zshrc.zsh-template .zshrc $ vim .zshrc
export ZSH=$HOME/Dropbox/dotfiles/.oh-my-zsh
Add or modify files in .oh-my-zsh/custom
Commit and push
$ stow --simulate --verbose=1 --ignore='(gitmodules|oh-my-zsh)' --dir=/Users/ltiao/Dropbox dotfiles $ stow --verbose=1 --ignore='(gitmodules|oh-my-zsh)' --dir=/Users/ltiao/Dropbox dotfiles $ chsh -s /bin/zsh
Switching to iTerm2
-
Download and install iTerm2
-
Key shortcuts
-
$ curl -o "Solarized Dark.itermcolors" https://raw.githubusercontent.com/altercation/solarized/master/iterm2-colors-solarized/Solarized%20Dark.itermcolors
$ curl -o "Tomorrow Night Eighties.itermcolors" https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/iTerm2/Tomorrow%20Night%20Eighties.itermcolors
- Background Opacity
- Background dimming, animation
Themes
$ cd .oh-my-zsh/custom/themes/ $ curl -O https://raw.githubusercontent.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme
ZSH_THEME="bullet-train"
Powerline-compatible Fonts
-
Download Powerline fonts
-
Install a font. "Meslo LG S Regular for Powerline" is probably just as good as any.
-
Configure iTerm2 to use font
Further Readings
- http://hiltmon.com/blog/2013/02/13/make-iterm-2-more-mac-like/
- https://ruigomes.me/blog/perfect-iterm-osx-terminal-installation/
- http://stackoverflow.com/questions/6801594/word-jumping-in-iterm2-or-terminal-in-osx-lion
- https://github.com/powerline/fonts
- https://powerline.readthedocs.org/en/latest/installation/osx.html#fonts-installation
- https://gist.github.com/agnoster/3712874
Comments
Comments powered by Disqus