funky icon indicating copy to clipboard operation
funky copied to clipboard

Add a way to specify a command that runs directly before funk definition

Open bbugyi200 opened this issue 7 years ago • 0 comments

For example, assume the user inputs the following as the definition for a funk slc--meant to alias some_long_command:

# precmd: compdef {{funk}}=some_long_command
some_long_command

Then the resulting final funk definition should be

...
compdef slc=some_long_command
slc() {
    some_long_command "$@"
}

where ... represents the possibility of built-in (automatic) funk pre-commands---one of which would currently be unalias {{funk}} &> /dev/null.

bbugyi200 avatar Dec 01 '18 23:12 bbugyi200