Skip to content

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.

Install

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

curl -sS https://starship.rs/install.sh | sh
choco install starship

Setup

To load starship prompt in the terminal, append the following line(s) to the indicated files.

~/.bashrc
eval "$(starship init bash)"
~/.zshrc
eval "$(starship init zsh)"
Documents\PowerShell\profile.ps1
Invoke-Expression (&starship init powershell)

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

  1. In ~/.zimrc, replace zmodule asciiship with
~/.zimrc
zmodule romkatv/powerlevel10k --use degit
  1. Run zimfw install in zsh to complete install.
  2. Install powerline fonts or nerd fonts for icons.
  3. Restart zsh and finish p10k's interactive configuration steps.

Node version manager (nvm)

  1. Add the following line in ~/.zimrc to add Node version manager (nvm).
~/.zimrc
zmodule lukechilds/zsh-nvm
  1. Run zimfw install in zsh to install nvm.
  2. 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

Comments