diff --git a/.zshrc b/.zshrc index 9b8eeff..00089d8 100644 --- a/.zshrc +++ b/.zshrc @@ -81,9 +81,22 @@ error_log() { __shell_qol__() { if command_exists oh-my-posh; then - # eval "$(oh-my-posh init zsh --config 'https://git.k4li.de/dotfiles/oh-my-posh/raw/branch/main/amro.toml')" - # eval "$(oh-my-posh init zsh --config '~/.zsh/themes/power10k_edit.toml')" - eval "$(oh-my-posh init zsh --config '~/.zsh/themes/clean-info.toml')" + + # local zen=~/.zsh/themes/zen.toml + local info=~/.zsh/themes/clean-info.toml + local power=~/.zsh/themes/power10k_edit.toml + + # if no ssh connection is there, use the $info theme + # else + # use the $power theme + if [ -z "$SSH_CONNECTION" ]; then + # eval "$(oh-my-posh init zsh --config 'https://git.k4li.de/dotfiles/oh-my-posh/raw/branch/main/amro.toml')" + # eval "$(oh-my-posh init zsh --config '~/.zsh/themes/power10k_edit.toml')" + # eval "$(oh-my-posh init zsh --config ${zen})" + eval "$(oh-my-posh init zsh --config ${info})" + else + eval "$(oh-my-posh init zsh --config ${power})" + fi else echo_missing "oh-my-posh" curl -s https://ohmyposh.dev/install.sh | $_sudo bash --norc -s -- -d /usr/bin/