Skip to content

Instantly share code, notes, and snippets.

View NathanielSlw's full-sized avatar
🎯
Focusing

NathanielSlw

🎯
Focusing
View GitHub Profile
@NathanielSlw
NathanielSlw / zsh_preview_help.zsh
Last active July 17, 2025 20:18
zsh shortcut to run --help on the current command by typing Ctrl+H (add to your .zshrc)
function preview_help() {
eval " $BUFFER --help" # Hide from history
zle redisplay
}
zle -N preview_help
bindkey '^H' preview_help # Ctrl+H