A collection of useful tools for CLI
Terminal
Alacritty
-
Config
Alacritty looks for configuration files in:
$XDG_CONFIG_HOME/alacritty/alacritty.toml $XDG_CONFIG_HOME/alacritty.toml $HOME/.config/alacritty/alacritty.toml # Recommended $HOME/.alacritty.toml
Warp
Kitty
-
Install (Linux/Mac)
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
kitty will be install to
/Applications/kitty.app
on Mac~/.local/kitty.app
on Linux
-
Add icon for kitty to taskbar on Linux
# Create symbolic links to add kitty and kitten to PATH (assuming ~/.local/bin is in your system-wide PATH) ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/ # Place the kitty.desktop file somewhere it can be found by the OS cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/ # If you want to open text files and images in kitty via your file manager also add the kitty-open.desktop file cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/ # Update the paths to the kitty and its icon in the kitty desktop file(s) sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop
-
Change default icon to kitty-icon dark
# Fedora curl https://raw.githubusercontent.com/DinkDonk/kitty-icon/main/kitty-dark.png -o ~/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png gtk-update-icon-cache -f -t ~/.local/kitty.app/share/icons/hicolor
For more information, see Install kitty
-
Shortcuts
Action Keyboard Shortcut Create a new tab Ctrl + Shift + T
Create a new window Ctrl + Shift + Enter
Change layout Ctrl + Shift + L
Close window Ctrl + Shift + W
Next window ctrl + shift + ]
Previous window ctrl + shift + [
For more information, see:
Shell
bash
zsh
oh-my-zsh: Framework for Zsh, comes with plugins, themes, functions, helpers
Antidote: zsh plugin manager (successor of Antibody
- successor of Antigen
) - Cure to slow zsh loading time
Completion, suggestions & syntax highlight for zsh
-
Completions (for a command)
-
Suggestions (from history)
-
Syntax highlight
fish
Shell Plugins
argc-completions
Argc-completions: Completions for any shell. Supports 1000+ commands. Automatically generate completion definition from help text and man page.
fzf: A command-line fuzzy finder
- Key bindings for command-line1:
CTRL-T
- Get a list of files and directoriesCTRL-R
- Get a list of command historyALT-C
- Get a list of directories
- Fuzzy Complete for files/directories2:
**<TAB>
:COMMAND [DIRECTORY/][FUZZY_PATTERN]**<TAB>
Shell Prompt
Starship: Cross-shell Prompt
See Starship
CLI tools
File navigate
broot
3: A better way to navigate directories πππ
broot can replace a lot of CLI tools (e.g. ls
, cd
, tree
, df
, find
β¦)
- Config
- The default configuration file location is
~/.config/broot/conf.toml
- How to config Broot?
- The default configuration file location is