From d5ff981fa61890c3df2997fd35f189e409476d0d Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 27 Feb 2018 15:52:36 +0100 Subject: sh: Add .profile for environment variables and startx --- sh/.profile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sh/.profile (limited to 'sh') diff --git a/sh/.profile b/sh/.profile new file mode 100644 index 0000000..399a6ba --- /dev/null +++ b/sh/.profile @@ -0,0 +1,9 @@ +if [ -f "${HOME}/.config/sh/environment.sh" ] +then + . "${HOME}/.config/sh/environment.sh" +fi + +if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] +then + exec startx +fi -- cgit v1.2.3