diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-02-27 15:52:36 +0100 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2018-02-27 15:52:36 +0100 |
commit | d5ff981fa61890c3df2997fd35f189e409476d0d (patch) | |
tree | 864bce8a6ebab8f012dd6969f09c7cfae433da76 | |
parent | b7f18ff10e5436af48538daa81e93386f4d9625c (diff) | |
download | dotfiles-d5ff981fa61890c3df2997fd35f189e409476d0d.tar.gz dotfiles-d5ff981fa61890c3df2997fd35f189e409476d0d.tar.bz2 |
sh: Add .profile for environment variables and startx
-rw-r--r-- | sh/.profile | 9 |
1 files changed, 9 insertions, 0 deletions
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 |