layout | title | subtitle | date | author | header-img | catalog | tags | |||
---|---|---|---|---|---|---|---|---|---|---|
post |
快速配置zsh |
zsh的快速配置 |
2017-06-19 |
BY |
img/post-bg-universe.jpg |
true |
|
比较水的 Personal Notes
cat /etc/shells
显示
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
重新打开终端,输入
zsh
即可切换终端,并且发现 oh my zsh 已经帮我们配置好 zsh 了
open ~/.zshrc
修改 ZSH_THEME=”robbyrussell”
,主题在 ~/.oh-my-zsh/themes 目录下。
修改为
ZSH_THEME="kolo"
可以参照这里进行选择.
chsh -s /bin/zsh
open ~/.zshrc
添加显示隐藏文件的快捷命令
alias fd='defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder'
alias fh='defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder'