dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.23k stars 313 forks source link

Scripting Files - Shell Variables - 'no such file or directory' #587

Open chrisJuresh opened 3 years ago

chrisJuresh commented 3 years ago

I have followed the instructions in the scripting files section, however when adding to my zshrc or to a shell script I get

/home/chris/.zshrc:.:56: no such file or directory: ~/.cache/wal/colors.sh when in my zshrc [chris@desktop ~]$ flatbg /home/chris/bin/flatbg: line 3: ~/.cache/wal/colors.sh: No such file or directory when running a script

This file clearly exists and I can open it and see all of the colors in it.

Amar1729 commented 2 years ago

~ doesn't always expand by default. You may need to set GLOB_SUBST or $HOME instead of ~ https://superuser.com/questions/1618296/no-such-file-or-directory-oh-my-zsh-oh-my-zsh-sh-even-though-file-exists