Skip to content

Instantly share code, notes, and snippets.

@JakeCoxon
Last active August 29, 2015 14:25
Show Gist options
  • Save JakeCoxon/ec69f959801cf0a0fc39 to your computer and use it in GitHub Desktop.
Save JakeCoxon/ec69f959801cf0a0fc39 to your computer and use it in GitHub Desktop.
a() {
local cmd
cmd="$(alias | sed "s/^alias \(..*\)=\'\(.*\)\'/\1#\2/" | column -t -s $'#' 2> /dev/null | fzf | sed "s/^[^ ]* *//")"
if [ -n "$cmd" ]; then
echo $cmd
eval $cmd
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment