diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-17 00:04:16 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-17 00:04:16 +0200 |
commit | 08fe7f54c0daf00f49993eb74f56e1ce4d0be781 (patch) | |
tree | d9620e25af5bd417dce96c1d05d9049e4d14f938 /config/essentials | |
parent | 8f901edc752d7c34336af333b2622488135c09c7 (diff) |
refactor
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 |