diff options
Diffstat (limited to 'config/essentials')
-rw-r--r-- | config/essentials/zsh/.zshrc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 414a7d7..993ae8a 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -1,15 +1,14 @@ #!/bin/zsh -if [[ "/dev/tty1" = "$TTY" || "/dev/tty2" = "$TTY" ]] && [[ "$(id -u)" -ne 0 ]] +if [ "$(id -u)" -ne 0 ] then clear - if [ "/dev/tty1" = "$TTY" ] - then - exec startw > /dev/null 2>&1 - else - exec startx > /dev/null 2>&1 - fi - exit + case "${TTY#/dev/}" in + tty1) exec startw ;; + tty2) exec startx ;; + tty3) exec startdwl ;; + *) false ;; + esac && exit fi autoload -U select-word-style |