diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-18 10:07:54 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-18 10:07:54 +0100 |
commit | b98544d80bbe7514410bb3c4ce1c5e7b44eb05cb (patch) | |
tree | f53aeb92126fee0f0bc3f9f6100390bae6147642 /config | |
parent | d58197f1e91e731fb44570237ed920340966d3bd (diff) |
checkpoint
Diffstat (limited to 'config')
-rwxr-xr-x | config/essentials/zsh/.zprofile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/essentials/zsh/.zprofile b/config/essentials/zsh/.zprofile new file mode 100755 index 0000000..17d773a --- /dev/null +++ b/config/essentials/zsh/.zprofile @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ "$(id -u)" -ne 0 ] +then + # if a login tty clear the screen + [ "${TTY%%tty*}" = '/dev/' ] && clear + # check if login tty is 2 + case "${TTY#/dev/tty}" in + 2) exec startx > /dev/null 2>&1 ;; + *) false ;; + esac && exit +fi |