diff options
Diffstat (limited to 'config')
| -rwxr-xr-x | config/essentials/zsh/.zprofile | 14 | ||||
| -rw-r--r-- | config/home/.zshenv | 1 | 
2 files changed, 6 insertions, 9 deletions
diff --git a/config/essentials/zsh/.zprofile b/config/essentials/zsh/.zprofile index 17d773a..9ae68bc 100755 --- a/config/essentials/zsh/.zprofile +++ b/config/essentials/zsh/.zprofile @@ -1,12 +1,8 @@  #!/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 +[ "${TTY%%tty*}" = '/dev/' ] && clear + +if [ "$FROMLY" ] && [ "$(id -u)" -ne 0 ]; then +    exec startx > /dev/null 2>&1 +    exit  fi diff --git a/config/home/.zshenv b/config/home/.zshenv index a26c6e5..4932584 100644 --- a/config/home/.zshenv +++ b/config/home/.zshenv @@ -1,4 +1,5 @@  #!/bin/zsh +  export EDITOR="nvim"  export VISUAL="nvim"  | 
