profile.freebsd: Added XDG_RUNTIME_DIR
This commit is contained in:
parent
4ebb400c61
commit
af69e80c80
3 changed files with 13 additions and 0 deletions
8
.profile
8
.profile
|
|
@ -7,3 +7,11 @@ if [ -d "$HOME/.profile.d" ]; then
|
|||
. "$pd"
|
||||
done
|
||||
fi
|
||||
|
||||
command -v uname >/dev/null &&
|
||||
case $(uname) in
|
||||
FreeBSD)
|
||||
. "$HOME/.profile.freebsd"
|
||||
;;
|
||||
esac \
|
||||
;
|
||||
|
|
|
|||
1
.profile.freebsd
Normal file
1
.profile.freebsd
Normal file
|
|
@ -0,0 +1 @@
|
|||
export XDG_RUNTIME_DIR=/var/run/user/`id -u`
|
||||
|
|
@ -16,6 +16,7 @@ ifeq ($(UNAME),Darwin)
|
|||
else ifeq ($(UNAME),FreeBSD)
|
||||
DEFAULT_TARGETS += $(HOME)/.bashrc \
|
||||
$(HOME)/.bashrc.freebsd \
|
||||
$(HOME)/.profile.freebsd \
|
||||
$(HOME)/.sway/config
|
||||
PROFILE = .profile
|
||||
INSTALL = ginstall
|
||||
|
|
@ -46,6 +47,9 @@ profileds: $(PROFILEDS)
|
|||
$(HOME)/.profile: $(PROFILE)
|
||||
cp $< $@
|
||||
|
||||
$(HOME)/.profile.freebsd: .profile.freebsd
|
||||
cp $< $@
|
||||
|
||||
$(HOME)/.bashrc: .bashrc
|
||||
cp $< $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue