command prompt
Customized the command prompt.
Bash It
https://github.com/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.shStarship
🚀 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 | shWindows
choco install starshipOr
winget install Starship.StarshipSetup
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)"Powershell
Invoke-Expression (&starship init powershell)zimfw
https://github.com/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 | zshPowerlevel10k (p10k) prompt
- In
~/.zimrc, replacezmodule asciishipwith
~/.zimrc
zmodule romkatv/powerlevel10k --use degit- Run
zimfw installin 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
~/.zimrcto add Node version manager (nvm).
~/.zimrc
zmodule lukechilds/zsh-nvm- Run
zimfw installin 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=trueLast updated on