zsh: add zlogin - dotfiles - 🍚 personal arsenal of "rice"
HTML git clone https://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit c07979323cf1ea0b59753457b86f646fa8a07a98
DIR parent d899ff323d662afa8797f2034a7c4cee54a94334
HTML Author: drkhsh <me@drkhsh.at>
Date: Fri, 6 Sep 2024 14:42:29 +0200
zsh: add zlogin
Diffstat:
A zsh/.config/zsh/.zlogin | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/zsh/.config/zsh/.zlogin b/zsh/.config/zsh/.zlogin
@@ -0,0 +1,4 @@
+# startx if necessary
+if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
+ exec startx &>/dev/null
+fi