For people having an attention span longer than a tweet

Experience, Information Technology, Thank You Sir May I Have Another

Setting CachyOS Environment Variables

CachyOS logo

One of the massive problems with software development today, especially in the CachyOS and Linux world in general is that nobody does the documentation. Hack on the fly, make grand sweeping changes, and never update the doc!

Fish

Almost all of the documentation you find online for fish is wrong, at least when it comes to setting environment variables. Fish, not bash, is the shell CachyOS uses.

All of those pages telling you to edit your .zshrc and .zshenv files are bullshit. They may have been grass in the bull’s stomach at some point, but they are bullshit now. Who would have thunk I could waste an hour trying to set a variable per my mutt post?

The file you want is config.fish. It can be found in ~/.config/fish. This is where you have to set environment variables and add your personal bin directory to path.

Please note that fish has fish_add_path now.

whoami

Most of your bash scripts are going to have oceans of trouble. One has to do this

sudo chown (whoami):mail $MAIL

and as it was in my mutt post

sudo chown `whoami`:mail $MAIL

Nice, huh?