command prompt
Bash It¶
Bash-it/bash-it is the community's collection of useful bash scripts for bash
, inspired by the oh-my-zsh project, providing autocompletion, themes, aliases, custom functions, etc for the bash prompt.
git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
bash ~/.bash_it/install.sh
Starship¶
🚀 Starship command prompt is an enhancement for command prompt in a multitude of shells, powered by Rust. It is available for bash
, zsh
, fish
, powershell
, etc.
Install¶
Linux/MacOS
curl -sS https://starship.rs/install.sh | sh
Windows
choco install starship
Setup¶
To load starship prompt in the terminal, append the following line(s) to the indicated files.
Bash
~/.bashrc
eval "$(starship init bash)"
Zsh
~/.zshrc
eval "$(starship init zsh)"
zimfw¶
zimfw/zimfw is a blazing fast zsh plugin framework, about 30x faster loading speed than oh-my-zsh
.
After zsh
is installed, run:
wget -nv -O - https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
Powerlevel10k (p10k) prompt¶
- In
~/.zimrc
, replacezmodule asciiship
with
~/.zimrc
zmodule romkatv/powerlevel10k --use degit
- Run
zimfw install
in zsh to complete install. - Install powerline fonts or nerd fonts for icons.
- Restart zsh and finish p10k's interactive configuration steps.
Node version manager (nvm)¶
- Add the following line in
~/.zimrc
to add Node version manager (nvm).
~/.zimrc
zmodule lukechilds/zsh-nvm
- Run
zimfw install
in zsh to install nvm. - To save loading time of zsh, you can use lazy loading by adding the following line to the beginning of
~/.zshrc
:
~/.zshrc
export NVM_LAZY_LOAD=true