zshrc: if the default prompt is detected (no custom prompt theme is set), then set the custom fallback one

master
Meliurwen 1 year ago
parent 17061dfd8d
commit 2e5924bc35
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 5
      zsh/.zshrc

@ -249,4 +249,7 @@ for plugin_f in "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/plugins/"*(.zsh|.zsh-them
source $plugin_f || printf "An error has occurred sourcing: %s\n" "$plugin_f"
done
#PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# If a default prompt is set, then change to this custom one
if [ "$PS1" = "%m%# " ]; then
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
fi

Loading…
Cancel
Save