1.2 KiB
1.2 KiB
XDG
I keep my XDG files in the normal place, but specifying them in an environment variable makes things a little easier/clearer.
Set the config home.
export XDG_CONFIG_HOME="${HOME}/.config"
Set the data home.
export XDG_DATA_HOME="${HOME}/.local/share"
PATH
Add composer binaries to PATH.
PATH="${XDG_CONFIG_HOME}/composer/vendor/bin:${PATH}"
Add $HOME/usr/bin
to $PATH
because that is where I keep all of
my personal utilities and helper commands.
PATH="${HOME}/usr/bin:${PATH}"
Export it so programs and subshells know about it.
export PATH
Dbus
Make the session bus address fixed so other processes can know where to find it.
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
Export it so programs and subshells know about it.
export DBUS_SESSION_BUS_ADDRESS
Systemd
Import some variables into the systemd environment so that services started after this know about them.
systemctl --user import-environment PATH