Shell Tips

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

87 tips

Run npkg search ripgrep to search nixpkgs

Available when nix is installed

Nix

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 fanprofile to show the current laptop performance profile

Available on a supported Linux laptop profile interface

UtilitySystem

Use npkg find -- --help to search for the literal --help query

Available when nix and jq are installed and fzf is ready

Nix

Use NE to hide stderr or NUL to hide all output

Available when the G global alias is defined

Pipe AliasesGlobals

Run upkg to check detected package managers; review warnings on stderr

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

Pipe Aliases

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

Use zi to select a remembered directory interactively

Available when zoxide is installed and fzf is ready

FZF & Zoxide

Run zdoctor in an interactive shell; repair blocked fzf and restart

Always available

Shell BehaviorCore

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

Available when curl is installed

NetworkCore

Run upkg outdated --only flatpak to include hidden extension update refs

Available when flatpak is installed

Package Updates

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 peek <file> for a quick file preview

Available when bat or cat is installed

ViewingCore

Use ft --fixed-strings to search literal text

Available when ripgrep or grep is installed

Search & ProcessCore

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