Fixing the upower warning - WSL/ZSH/Spaceship prompt
There are many cool prompts with ZSH. It's one of the reasons I made the switch from using BASH. However, after installing the spaceship prompt on Windows subsystem for Linux, I noticed the following error: (upower:26251): UPower-WARNING **: 10:47:25.757: Cannot connect to upowerd: Could not connect: No such file or directory upowerd isn't running on WSL. There is no need for it to run. I don't even believe there is support for it on WSL. After doing some digging in the spaceship prompt code, it turns out this feature can be disabled with a simple environment variable. I've added the following to my ~/.profile: # Turn off power status when using spaceship prompt export SPACESHIP_BATTERY_SHOW = false