Adding XDG_BIN_PATH to Omarchy (~/.local/bin) #4791
naxels
started this conversation in
Suggestions
Replies: 1 comment
-
|
Here is what Ubuntu and Mint (and likely other Ubuntu based distro's) do: they don't have XDG_BIN_PATH specified, however have this in so if at any point either $HOME/bin and/or $HOME/.local/bin folder is created, it will auto add it to $PATH |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I generally create/copy some shell scripts and binaries across my Linux machines & servers
and was surprised that Omarchy didn't have XDG_BIN_PATH created by default.
Accidentally I discovered that for my PC, it was configured and tracing back my steps across upgrades etc,
I discovered that installing Python (which installs uv) through the menu, adds this folder and path to $PATH..
It does it in a strange way though:
/home/naxels/.local/share/../binI also use Omarchy on a MBP2015, but didn't install Python/uv there, that's how I found out about the missing folder/$PATH.
Then today while I was figuring out whether this was a standard or not, I came across the XDG Base Directory Spec (https://specifications.freedesktop.org/basedir/latest/)
and saw this:
in other places, this is referred to unofficially as XDG_BIN_PATH..
While working out a PR for Omarchy, I noticed that @dhh had just released a commit to add it to 1 location:
b97ea79
default/bash/envs
Should we officially add a XDG_BIN_PATH and create .local/bin on install and as @dhh 's commit already shows, add the .local/bin to $PATH?
as I assume, like myself, developers etc tend to create scripts/binaries they want to keep handy and preferably in $PATH
to have them at their fingertips
Beta Was this translation helpful? Give feedback.
All reactions