Skip to content

Instantly share code, notes, and snippets.

@pstiasny
Created August 24, 2011 23:05
Show Gist options
  • Save pstiasny/1169534 to your computer and use it in GitHub Desktop.
Save pstiasny/1169534 to your computer and use it in GitHub Desktop.
Bash man shortcut
# 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