Archived
1
0
Fork 0

zsh: Only automatically start sway if it is installed

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-03-01 16:51:44 +01:00
parent de96f52d73
commit bcc38f8d8b
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF

4
zshrc
View file

@ -7,8 +7,8 @@
export PATH="$HOME/.local/share/flatpak/exports/bin:$HOME/.local/bin:$PATH"
# If running in a TTY, start sway
[[ $(tty) = /dev/tty1 ]] && exec $HOME/.config/sway/run.sh
# If running on the first TTY and sway is installed, start sway
[[ $(tty) = /dev/tty1 ]] && type sway &>/dev/null && exec $HOME/.config/sway/run.sh
export ZSH=$HOME/.oh-my-zsh