Contents

Command line tools

Tools for your command lines prompts.

Bashit

Bash-it is the community’s collection of useful bash scripts, inspired by the oh-my-zsh project.

There are autocompletion, themes, aliases, custom functions, etc for bash prompt.

1
2
3
git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it

bash ~/.bash_it/install.sh

zsh improved framework (zimfw)

zim is a blazing fast zsh plugin framework, about 30x faster loading speed than the most popular oh-my-zsh.

Install zsh first and run the script

1
wget -nv -O - https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh

Powerlevel10k prompt

From powerlevel10k@GitHub, replace zmodule steeef with

1
zmodule romkatv/powerlevel10k

in ~/.zimrc and then run zimfw install in zsh.

Restart zsh to go through Powerlevel10k’s interactive setup.

Install powerline fonts for proper font rendering.

Node version manager (nvm)

Add this line in ~/.zimrc for zsh-nvm module and then run zimfw install in zsh.

1
zmodule lukechilds/zsh-nvm

To save loading time of zsh (about 70x), you can enable lazy loading by adding the following line to ~/.zshrc, before loading zmodules:

1
export NVM_LAZY_LOAD=true

Starship

🚀 Starship is an enhancement for command prompt in a multitude of shells, powered by Rust. Available for bash, zsh, fish, powershell, etc.

You could install the standalone binary:

1
sudo -v && curl -fsSL https://starship.rs/install.sh | bash

Or via AUR. For Arch and derivatives (enOS, Garuda, Manjaro):

1
paru -S starship-bin # or just "starship" if you don't mind compiling the Rust code

Usage

Append this line in your *.rc files of your shell and restart your shell to load starship.

Bash: ~/.bashrc

1
eval "$(starship init bash)"

Zsh: ~/.zshrc

1
eval "$(starship init zsh)"

Windows Powershell: ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1

1
Invoke-Expression (&starship init powershell)

Install nerd fonts to show special characters correctly.

Tilix

Tilix is an advanced GTK3 tiling terminal emulator.

The following script installs tilix and python-nautilus for Open tilix here context menu in the Nautilus file manager.

For Ubuntu:

1
2
3
sudo apt install tilix

[[ -x $(command -v nautilus) ]] && sudo apt install python-nautilus

For Arch and derivatives

1
2
sudo pacman -S tilix
[[ -x $(command -v nautilus) ]] && sudo pacman -S python-nautilus

Set tilix as the default GUI terminal emulator

For Ubuntu or PopOS:

1
sudo update-alternatives --config x-terminal-emulator

For Arch and derivatives (enOS, Garuda, Manjaro).

Select in Prefered applications.

progress: See the progress of ongoing commands

progress measures the speed and progress of ongoing commands.

After installation, just launch progress in the terminal.

pv: See the progress of pipes

pv shows transfer speed and /or progress through a Unix pipe.

The usage of pv is similar to that of cat. For example,

1
2
cat file > other_file # no output with cat
pv file > other_file  # With progress
1
2
3
4
5
# Showing both compression progress and speed
pv file | gzip > file.gz

# Sandwich form, showing speed without progress
cat file | pv | gzip > file.gz