shell-things/etc/profile.d/99-userapps.sh

12 lines
429 B
Bash
Raw Normal View History

2024-07-16 09:53:05 +02:00
# Heavily copied and modified from /etc/profile.d/snapd.sh
local_bin_path="$HOME/.local/bin"
if [ -n "${PATH##*${local_bin_path}}" ] && [ -n "${PATH##*${local_bin_path}:*}" ]; then
export PATH="$PATH:${local_bin_path}"
fi
local_xdg_path="$HOME/.local/share"
if [ -n "${XDG_DATA_DIRS##*${local_xdg_path}}" ] && [ -n "${XDG_DATA_DIRS##*${local_xdg_path}:*}" ]; then
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${local_xdg_path}"
fi