Skip to content

Instantly share code, notes, and snippets.

Created Jan 25, 2013
What would you like to do?
zsh preexec hook example
# less -F: Causes less to automatically exit if the entire file can be displayed on the first screen.
# .zshrc
function printc () {
print "printc" $1
autoload -Uz add-zsh-hook
add-zsh-hook preexec printc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment