zsh: Only automatically start sway if it is installed
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
de96f52d73
commit
bcc38f8d8b
4
zshrc
4
zshrc
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
export PATH="$HOME/.local/share/flatpak/exports/bin:$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/share/flatpak/exports/bin:$HOME/.local/bin:$PATH"
|
||||||
|
|
||||||
# If running in a TTY, start sway
|
# If running on the first TTY and sway is installed, start sway
|
||||||
[[ $(tty) = /dev/tty1 ]] && exec $HOME/.config/sway/run.sh
|
[[ $(tty) = /dev/tty1 ]] && type sway &>/dev/null && exec $HOME/.config/sway/run.sh
|
||||||
|
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
export ZSH=$HOME/.oh-my-zsh
|
||||||
|
|
||||||
|
|
Reference in a new issue