mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
profile.d: add 99-userapps.sh
This commit is contained in:
parent
f58d2c4488
commit
0bcc159eb3
11
etc/profile.d/99-userapps.sh
Normal file
11
etc/profile.d/99-userapps.sh
Normal file
@ -0,0 +1,11 @@
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user