# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
-if [ grep -q suse /etc/os-release ]; then
+if grep -q suse /etc/os-release; then
# for compatibility with OpenSuSE don't forget to source .bash_profile from .profile
true
else
PS1='\u@\h \w \$ '
command -v starship > /dev/null 2>&1 && eval "$(starship init bash)"
-# apply base16 theme
-test -e ~/.local/bin/base16-flavours && ~/.local/bin/base16-flavours || true
-clear
-test -e /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc" || true
+# apply base16 theme in X/Wayland session only, or flavours' plasma-hook hangs:
+case $(tty) in
+ /dev/tty[0-9]*)
+ command -v ttyscheme > /dev/null 2>&1 && ttyscheme onedark
+ clear
+ test -e /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc" || true
+ ;;
+ /dev/pts/[0-9]*)
+ test -e ~/.local/bin/base16-flavours && ~/.local/bin/base16-flavours || true
+ clear
+ test -e /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc" || true
+ ;;
+esac