Oh My Zsh
“Oh My Zsh will not make you a 10x developer…but you might feel like one.”
What is “Oh My Zsh”
This is what i copied from the project’s github[1]
A delightful community-driven (with 1,300+ contributors) framework for managing your zsh configuration. Includes 200+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, python, etc), over 140 themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community. https://ohmyz.sh/
My configuration steps
The following commands shown are from these projects’ README.md.
References are listed below.
#1 Install Oh-My-Zsh
I prefered using Wget, so
1 | sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
#2 Install zsh-completion [2]
1 | git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions |
#3 Install zsh-syntax-highlight [3]
1 | git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting |
#4 Install zsh-autosuggestions [4]
1 | git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions |
#5 Install autojump [5]
1 | git clone git://github.com/wting/autojump.git |
#6 Edit .zshrc
Change theme to “agnoster”
1 | ZSH_THEME="agnoster" |
Add default user to hide machine name and user name
1 | DEFAULT_USER='doot' |
make autojump available before source zsh.sh
1 | [[ -s /home/doot/.autojump/etc/profile.d/autojump.sh ]] && source /home/doot/.autojump/etc/profile.d/autojump.sh |
add keybinding to accept autosuggestions, I use ‘,’ to accept suggestion
1 | zle -N autosuggest-accept |
edit plguins, I enable wd docker etc. additionally.
1 | plugins=(git web-search catimg wd zsh-syntax-highlighting zsh-autosuggestions docker zsh-completions cp docker-machine) |
My Terminal
A simple video:
Reference
- Github, “robbyrussell/oh-my-zsh”
- Github, “zsh-users/zsh-completions”
- Github, “zsh-users/zsh-syntax-highlighting”
- Github, “zsh-users/zsh-autosuggestions”
- Github, “wting/autojump”