ZSH
July 13, 2019install zsh
https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
sudo xcodebuild -license accept
brew install zsh zsh-completions
zsh --version
sudo echo "$(which zsh)" >> /etc/shells (brew may do this for you)
chsh -s $(which zsh)
- restart terminals
oh-my-zsh
https://github.com/robbyrussell/oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
material theme for shell
https://github.com/carloscuesta/materialshell
-
curl -o ~/Downloads/material-dark.terminal https://raw.githubusercontent.com/carloscuesta/materialshell/master/shell-color-themes/macOS/terminal/materialshell-dark.terminal
-
curl -o ~/Downloads/material-oceanic.terminal https://raw.githubusercontent.com/carloscuesta/materialshell/master/shell-color-themes/macOS/terminal/materialshell-oceanic.terminal
-
https://github.com/carloscuesta/materialshell/tree/master/shell-color-themes#macos
follow this
-
https://github.com/robbyrussell/oh-my-zsh/wiki/Customization
curl -fsSL -o "$HOME/.oh-my-zsh/custom/themes/materialshell.zsh-theme" https://raw.githubusercontent.com/carloscuesta/materialshell/master/materialshell.zsh
- Modify
.zshrc
to enable the theme withZSH_THEME="materialshell"
vars
https://wiki.archlinux.org/index.php/environment_variables
- put them in ~/.profile
- add
source ~/.profile
to~/.zshrc
and~/.bash_profile
speeding up zsh and oh-my-zsh
https://blog.jonlu.ca/posts/speeding-up-zsh
https://carlosbecker.com/posts/speeding-up-zsh/
raw perf numbers
for i in $(seq 1 10); do /usr/bin/time $SHELL -i -c exit; done
edit .zshrc
# top of file
zmodload zsh/zprof
# end of file
zprof
test shell startup verbose
zsh -i -c -v -x exit
solarized theme
https://github.com/altercation/solarized
Mac Plugin
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/macos
Shortcuts to open terminals, etc.
tab
open new tab in current directory