Closed simnalamburt closed 7 years ago
Thank you very much for the report.
I've looked into this and found that any argument at all, not only --version
, will cause this problem. This is because of the current alias definition we add in ~/.config/chips/build.fish
:
alias chips "/home/<username>/.local/bin/chips; exec fish"
Therefore chips --version
becomes ...; exec fish --version
, and since fish --version
will print the fish version and exit immediately, replacing the current shell with exec
is equivalent to exiting the shell immediately.
Solved by using function instead of alias
Solved by 7445a38.
When chips is executed with the
--version
argument, it turns off the parent fish shell.