Shell Tips

84 curated tips — shortcuts, workflows, and hidden features from Nirmal's Shell, including when conditional tools and integrations show up.

84 tips

Run npkg search ripgrep to search nixpkgs

Available when nix is installed

Nix

Run fbr <query> to start the branch picker with that filter

Available when fzf is ready in an interactive shell

GitFzf

Run npkg remove with no arguments to select active installed packages

Available when nix and jq are installed and fzf is ready

Nix

Run croot to jump to the current Git repository root

Available when git is installed

Git

Run upkg plan to list updates without installing anything

Available when paru, pacman, apt, dnf, brew, flatpak, nix, or npm is installed

Package Updates

Run fanprofile to show the current laptop performance profile

Available on a supported Linux laptop profile interface

UtilitySystem

Use NE to hide stderr or NUL to hide all output

Available when the G global alias is defined

Pipe AliasesGlobals

Run upkg managers to show active and alternate backends

Available when paru, pacman, apt, dnf, brew, flatpak, nix, or npm is installed

Package Updates

Run upkg clean --dry-run before package cleanup

Available when paru, pacman, apt, dnf, brew, flatpak, nix, or npm is installed

Package Updates

Run ft <pattern> [path] to search file contents

Available when ripgrep or grep is installed

Search & ProcessCore

Use ff --no-ignore or ft --hidden --no-ignore to broaden a search

Available when fd, fdfind, or GNU find is installed

Search & ProcessCore

Run gun to undo the latest commit but keep changes staged

Available when git is installed

Git

Run ff --pick <pattern> to choose a match and open it in your editor

Available when fzf is ready in an interactive shell

Search & ProcessFzf

Use zi to select a remembered directory interactively

Available when zoxide is installed and fzf is ready

FZF & Zoxide

Run ports 8080 or ports nginx to narrow the listening sockets

Available when ss is installed

NetworkCore

Run headers <url> to follow redirects and print HTTP headers

Available when curl is installed

NetworkCore

Press Ctrl+R to search history and insert a command

Available when fzf is ready in an interactive shell

HistoryFzf

Press Tab after a custom command to see valid arguments

Always available

Shell BehaviorCore

Use Ctrl+C during upkg to stop remaining managers and cleanup phases

Available when paru, pacman, apt, dnf, brew, flatpak, nix, or npm is installed

Package UpdatesUpkg

Use ztheme show custom to inspect; ztheme use custom applies the palette

Always available

UtilityCore

Run checkupdates for a fresh Arch repo inventory without changing the live DB

Available when pacman, checkupdates, and fakeroot are installed

UtilityCore

Run cgm list to show saved names without retrieving values

Available when cgm is loaded through secret-tool

Security

Run cgm env OPENAI_KEY to load a credential into this shell

Available when cgm is loaded through secret-tool

Security

Use z <query> to jump to a remembered directory

Available when zoxide is installed

NavigationZoxide