[NEW] profile.linux: Define XDG_RUNTIME_DIR if undef

This commit is contained in:
Andrea Rogers 2024-07-25 05:46:34 -05:00
commit 305ebc231a
2 changed files with 11 additions and 3 deletions

1
.profile.linux Normal file
View file

@ -0,0 +1 @@
[ -z "$XDG_RUNTIME_DIR" ] && export XDG_RUNTIME_DIR=/tmp/runtime-`id -u`

View file

@ -22,6 +22,13 @@ else ifeq ($(UNAME),FreeBSD)
PROFILE = .profile
INSTALL = ginstall
OPEN = xdg-open
else ifeq ($(UNAME),Linux)
DEFAULT_TARGETS += $(HOME)/.bashrc \
$(HOME)/.sway/config \
$(HOME)/.profile.linux
PROFILE = .profile
INSTALL = install
OPEN = xdg-open
else
DEFAULT_TARGETS += $(HOME)/.bashrc \
$(HOME)/.sway/config
@ -48,7 +55,7 @@ profileds: $(PROFILEDS)
$(HOME)/.profile: $(PROFILE)
cp $< $@
$(HOME)/.profile.freebsd: .profile.freebsd
$(HOME)/.profile.%: .profile.%
cp $< $@
$(HOME)/.bashrc: .bashrc
@ -57,13 +64,13 @@ $(HOME)/.bashrc: .bashrc
$(HOME)/.inputrc: .inputrc
cp $< $@
$(HOME)/.bashrc.freebsd: .bashrc.freebsd
$(HOME)/.bashrc.%: .bashrc.%
cp $< $@
/opt/local/etc/bashrc: .bashrc
sudo cp $< $@
/opt/local/etc/bashrc.mac: .bashrc.mac
/opt/local/etc/bashrc.%: .bashrc.%
sudo cp $< $@
$(HOME)/.vimrc: .vimrc