mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 04:13:08 +00: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
3 lines
244 B
Fish
3 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'
|