Created
August 24, 2011 23:05
-
-
Save pstiasny/1169534 to your computer and use it in GitHub Desktop.
Bash man shortcut
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
# Map Meta-m in bash to a function displaying man for the command you are entering | |
# Useful for looking up arguments | |
function split-command { man ${READLINE_LINE%% *}; } | |
bind -x '"\em":"split-command"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment