Created
January 25, 2013 10:13
-
-
Save amitu/4633274 to your computer and use it in GitHub Desktop.
zsh preexec hook example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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