xtendo-org / chips

A fast, lightweight, and concurrent plugin manager for the fish shell, written in Haskell
73 stars 3 forks source link

Running chips should reload the configuration #6

Closed xtendo-org closed 8 years ago

xtendo-org commented 8 years ago

Currently running chips is not sufficient to update the plugin system; it doesn't load the new plugins to the current fish shell which ran chips. The shell will remain unchanged.

Let's say the desired use-case scenario is that the user types chips, then the install/update takes place, and the current shell is loaded with the latest configuration and plugins. This means:

So, we need to add, at the end of the chips source code, a line that calls exec*. Then, in the build.fish file, something like below:

alias chips "exec ~/.local/bin/chips"

Alternatively, we can simply drop the line below in build.fish:

alias chips "~/.local/bin/chips; exec fish"
simnalamburt commented 8 years ago

I really like the second option. With this, I don't even need to add the ~/.local/bin to my $PATH variable!

alias chips "~/.local/bin/chips; and exec fish"