Posted inExperience / 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?

Roland Hughes started his IT career in the early 1980s. He quickly became a consultant and president of Logikal Solutions, a software consulting firm specializing in OpenVMS application and C++/Qt touchscreen/embedded Linux development. Early in his career he became involved in what is now called cross platform development. Given the dearth of useful books on the subject he ventured into the world of professional author in 1995 writing the first of the "Zinc It!" book series for John Gordon Burke Publisher, Inc.

A decade later he released a massive (nearly 800 pages) tome "The Minimum You Need to Know to Be an OpenVMS Application Developer" which tried to encapsulate the essential skills gained over what was nearly a 20 year career at that point. From there "The Minimum You Need to Know" book series was born.

Three years later he wrote his first novel "Infinite Exposure" which got much notice from people involved in the banking and financial security worlds. Some of the attacks predicted in that book have since come to pass. While it was not originally intended to be a trilogy, it became the first book of "The Earth That Was" trilogy:
Infinite Exposure
Lesedi - The Greatest Lie Ever Told
John Smith - Last Known Survivor of the Microsoft Wars

When he is not consulting Roland Hughes posts about technology and sometimes politics on his blog. He also has regularly scheduled Sunday posts appearing on the Interesting Authors blog.