dotfiles/scripts/brainy.theme.zsh

20 lines
330 B
Bash
Raw Normal View History

2022-03-02 23:08:13 +01:00
#!/bin/zsh
# Detect prompt color
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
if [ "$color_prompt" = yes ]; then
2022-03-06 00:23:12 +01:00
PS1="
%F{blue}%n@%m %F{default}[%F{yellow}%/%f] %F{green}○ %F{magenta}[%F{default}%*%F{magenta}]
2022-03-02 23:08:13 +01:00
%F{default}> "
else
2022-03-06 00:23:12 +01:00
PS1="
%n@%m [%/%f][%*]
2022-03-02 23:08:13 +01:00
> "
#PS1="%n@%m [%/%f] o [%*]
#> "
fi