mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08:00
ab62fe6496
* Editor mode is no the default * Use -i or --interactive or -e fish to edit function in interactive mode * tmpname is now created with random number added and check that file do not already exist * check $TMPDIR existence and put /tmp if it does not exist * There is an undocumented feature to use functions, started with dash. Introduce necessary changes to funced, functions, def_function() in order to make it work properly. * Delete editor guessing. Use $EDITOR variable or -e key
4 lines
244 B
Fish
4 lines
244 B
Fish
complete -c funced -xa "(functions -na)" --description "Save function"
|
|
complete -c funced -s e -l editor -d 'Open function in external editor' -xa '(__fish_complete_command)'
|
|
complete -c funced -s i -l interactive -d 'Edit in interactive mode'
|