There was an error fetching the commit references. Please try again later.
Implement safe shell reloading inside omf plugin
This commit adds an improved reload code for Oh My Fish, besides saving the history now the reloading technique keeps directory history and stack and clears fish_greeting, for a transparent transition. The reloading code is now safe regarding to background jobs. exec wipes fish job control, so the user-facing code under the (just- introduced by this commit) `omf reload`, and usages under `omf remove` and `omf update` are now kept safe by a warning. Recap of the commit: - Add improved reload code (omf.reload) - Add a safe reload code (omf.cli.reload) - Add `omf reload` command
Showing
- pkg/omf/functions/cli/omf.cli.reload.fish 18 additions, 0 deletionspkg/omf/functions/cli/omf.cli.reload.fish
- pkg/omf/functions/cli/omf.cli.remove.fish 1 addition, 0 deletionspkg/omf/functions/cli/omf.cli.remove.fish
- pkg/omf/functions/cli/omf.cli.update.fish 2 additions, 0 deletionspkg/omf/functions/cli/omf.cli.update.fish
- pkg/omf/functions/core/omf.reload.fish 11 additions, 0 deletionspkg/omf/functions/core/omf.reload.fish
- pkg/omf/functions/omf.fish 3 additions, 0 deletionspkg/omf/functions/omf.fish
Please register or sign in to comment