mac 下配置屬於自己的shell
阿新 • • 發佈:2018-07-16
jump prompt vim hub master rm2 自己 code gre mac使用iterm
[https://www.iterm2.com/]()
1. 安裝iterm2
2. 使用oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
3. cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
4. vim ~/.zshrc
ZSH_THEME="robbyrussell" 默認主題
[https://github.com/robbyrussell/oh-my-zsh/wiki/Themes]() 每個主題的說明
主題文件在 ~/.oh-my-zsh/themes 編輯這個主題 vim ~/.oh-my-zsh/themes/robbyrussell.zsh-theme PROMPT=‘%{$fg_bold[red]%}? %{$fg_bold[green]%}%p%{$fg[cyan]%}%d %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}>‘ 安裝插件 brew install autojump 修改.zshrc [[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh 自定義別名 vim ~.zshrc alias cls=‘clear‘ alias ll=‘ls -l‘ alias la=‘ls -a‘ alias vi=‘vim‘ alias grep="grep --color=auto"
mac 下配置屬於自己的shell