Current implementation just injects the line to the config.fish below:
# chips (don't touch the line below!)
if [ -e ~/.config/chips/build.fish ] ; source ~/.config/chips/build.fish ; end
And current implementation seems to be assuming that chips executable file is located at ~/.local/bin/chips
-- https://github.com/kinoru/chips/blob/master/src/Lib.hs#L57
execPath <- (byteString <$> getExecutablePath) >>= \ p ->
if "/ghc" `B.isSuffixOf` p
then (<> "/.local/bin/chips") . byteString <$> getHomeDirectory
else return p
Then why don't we add the alias for chips at the config.fish? It will provide better default and better UX to the users.
# chips (don't touch the lines below!)
alias chips "~/.local/bin/chips; and exec fish"
if [ -e ~/.config/chips/build.fish ]; source ~/.config/chips/build.fish; end
Current implementation just injects the line to the config.fish below:
And current implementation seems to be assuming that chips executable file is located at
~/.local/bin/chips
Then why don't we add the alias for chips at the config.fish? It will provide better default and better UX to the users.