Skip to content

Instantly share code, notes, and snippets.

@NicholasRoge
Created March 6, 2017 17:05
Show Gist options
  • Save NicholasRoge/bbaa1c6a8f25fef9abe7ba4a67de15a7 to your computer and use it in GitHub Desktop.
Save NicholasRoge/bbaa1c6a8f25fef9abe7ba4a67de15a7 to your computer and use it in GitHub Desktop.
foo()
{
source="`type -f key_pressed`"
echo "$source"
}
key_pressed(){ echo "key: $1"; }
foo key_pressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment