a function wrapper plugin for ZSH
Allows you to define persistent functions on-the-fly, without the need to add them to your config files. Your functions are permanently available until you delete them.
The plugin defines 3 functions:
||create new function(s) interactively|
||delete existing user-defined function(s)|
||list all user-defined functions|
functions are stored as plain text in $ZSH/functions/ and made available via the autoload builtin (i.e. they are only loaded into memory when called for the first time).
a) As an oh-my-zsh plugin
cd $ZSH/custom && git clone https://github.com/hlohm/mfunc.git plugins/mfunc
mfuncto your plugins in your
.zshrc. The relevant line should look something like this:
b) using antigen
- Add this line where you load your antigen bundles in your
antigen bundle hlohm/mfunc
c) with vanilla ZSH
git clonethis repo to a location of your choice
add a line
source /location/of/your/choice/mfunc.plugin.zshto your .zshrc
Upon its first run the plugin will notify you that it created the directory in which it stores your functions.
This is an early version covering only the most basic functionality. There are no safeguards whatsover, so use at you own risk. Things like tab completion, input sanitization and the like are on the TODO list.