iTerm2 is an open source replacement for Apple's Terminal.
It's highly customizable and comes with a lot of useful features.
$ brew tap homebrew/cask$ brew cask install iterm2
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, fish, tmux, IPython, Awesome, i3 and Qtile.
$ brew tap homebrew/cask-fonts
$ brew install svn
$ brew search powerline$ brew search nerd
$ brew cask install font-source-code-pro-for-powerline
$ brew cask install font-sauce-code-pro-nerd-font
$ brew install zsh
$ which zsh/usr/local/bin/zsh$ sudo sh -c "echo $(which zsh) >> /etc/shells"
$ chsh -s $(which zsh)
$ cat /etc/shells$ chsh -s /bin/zsh
% echo $0% echo $SHELL
% sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
→ ~ vim ~/.zshrc
→ ~ source ~/.zshrc
Powerlevel9k is a theme for ZSH which uses Powerline Fonts. It can be used with vanilla ZSH or ZSH frameworks such as Oh-My-Zsh, Prezto, Antigen, and many others.
→ ~ git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
→ ~ vim ~/.zshrc
→ ~ exec $SHELL
ZSH_THEME="powerlevel9k/powerlevel9k"
# 左側(cè)
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir dir_writable vcs vi_mode)
# 右側(cè)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status background_jobs history ram load time)
# 若當(dāng)前登入的帳號為你的帳號 xxx,就不用特別顯示出來
DEFAULT_USER="g2020070116"
# 使用 nerd font 時(shí)可以顯示更多 icon。詳情請參考 powerlevel9k wiki
POWERLEVEL9K_MODE='nerdfont-complete'
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
→ ~ exec $SHELL
→ ~ source ~/.zshrc
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k$ echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc退出 Iterm 重開
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k修改.zshrc中的 ZSH_THEME參數(shù)為 powerlevel10k/powerlevel10k$ sed 's/powerlevel9k/powerlevel10k/g' -i ~/.zshrc$ exec zsh重新啟動(dòng)ZSH
$ p10k configure
It suggests commands as you type based on history and completions.Requirements: Zsh v4.3.11 or later
$ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
$ vim ~/.zshrc
plugins=(zsh-autosuggestions)
plugins=(git zsh-autosuggestions)
$ source ~/.zshrc
休閒日誌 (0)
└遊戲玩法 (6)
└就普通的日誌 (4)
#hw (0)
└General Course (2)
└English Oral (0)
電腦相關(guān) (8)
└AI & Nvidia GPU (2)
└Android (3)
└Architecture (3)
└C & C++ (3)
└Compiler (3)
└Database (1)
└Game (1)
└Golang (0)
└Python (1)
└Java & JSP (1)
└Linux (6)
└macOS (1)
└OO (1)
└Raspberry Pi (8)
└Social Networks (2)
└Windows (7)
創(chuàng)作 (0)
└本宅創(chuàng)作 (8)
cckre 給 所有巴友:
夕闇-角色介紹網(wǎng)站 近期更新:片桐 彩子&虹野 沙希(純愛手札) http://www.yuuyami.url.tw/看更多16小時(shí)前