Closed simnalamburt closed 7 years ago
Thanks! This is indeed a bug.
Related code:
https://github.com/kinoru/chips/blob/b1799cd31d5f371a55596e8b7fd43dd1d802efcd/src/Lib.hs#L108-L111
It seems B.readFile
fails if the file does not exist.
I've experienced similar problem when ~/.config/fish/functions
folder does not exist (on Ubuntu 14.04).
error message:
chips: /home/ubuntu/.config/fish/functions: copyFile: does not exist (No such file or directory)
Disappeared when mkdir ~/.config/fish/functions
and re-ran chips.
Just checked #16.. sorry for the duplicate! Will wait for the next version release 😁
Fixed in f14b127 and 23b4c85. Thanks!
If I run chips without making
~/.config/fish/config.fish
, it throws an exception.Proposal
if
config.fish
doesn't exist, I think making newconfig.fish
and injecting chips codes would be an agreeable default behavior. How do you think?