mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-30 23:29:28 +01:00
12 lines
429 B
Bash
12 lines
429 B
Bash
|
# 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
|