summaryrefslogtreecommitdiffstats
path: root/.config/zsh/.zshrc
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-02-20 15:41:54 +0100
committerJoe <rrbo@proton.me>2023-02-20 15:42:04 +0100
commit3953a23c22dbb7e445be7a3c02ae158b4e46fba3 (patch)
treef7788b78d927a89ad5b1b9ae5a9a133fb51ee936 /.config/zsh/.zshrc
parentup (diff)
downloaddotfiles-bsd-3953a23c22dbb7e445be7a3c02ae158b4e46fba3.tar.gz
dotfiles-bsd-3953a23c22dbb7e445be7a3c02ae158b4e46fba3.tar.bz2
dotfiles-bsd-3953a23c22dbb7e445be7a3c02ae158b4e46fba3.tar.xz
dotfiles-bsd-3953a23c22dbb7e445be7a3c02ae158b4e46fba3.tar.zst
dotfiles-bsd-3953a23c22dbb7e445be7a3c02ae158b4e46fba3.zip
compat
Diffstat (limited to '.config/zsh/.zshrc')
-rw-r--r--.config/zsh/.zshrc19
1 files changed, 16 insertions, 3 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index df8e9de..4bd504d 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -17,8 +17,21 @@ HISTSIZE=1000000
SAVEHIST=1000000
HISTFILE=$XDG_CONFIG_HOME/zsh/history
-LESS_TERMCAP_mb=$(printf '\e[1;31m'); export LESS_TERMCAP_mb
-LESS_TERMCAP_md=$(printf '\e[1;31m'); export LESS_TERMCAP_md
+case $(hostname -s) in
+ mother|po-rbo)
+ os_color='\e[1;34m'
+ prompt_main="blue"
+ prompt_alt="cyan"
+ ;;
+ fbsd-tp)
+ os_color='\e[1;31m'
+ prompt_main="red"
+ prompt_alt="blue"
+ ;;
+esac
+
+LESS_TERMCAP_mb=$(printf $os_color); export LESS_TERMCAP_mb
+LESS_TERMCAP_md=$(printf $os_color); export LESS_TERMCAP_md
LESS_TERMCAP_me=$(printf '\e[0m'); export LESS_TERMCAP_me
LESS_TERMCAP_so=$(printf '\e[1;33;40m'); export LESS_TERMCAP_so
LESS_TERMCAP_se=$(printf '\e[0m'); export LESS_TERMCAP_se
@@ -102,5 +115,5 @@ bindkey -v "^ " globalias
bindkey -v " " magic-space
bindkey -M isearch " " magic-space
-PROMPT="%B%{$fg[blue]%}%m %{$fg[cyan]%}%c%{$fg[blue]%}%#%{$reset_color%} "
+PROMPT="%B%{$fg[$prompt_main]%}%m %{$fg[$prompt_alt]%}%c%{$fg[$prompt_main]%}%#%{$reset_color%} "
RPROMPT="%{$fg_bold[red]%}%(?..%?)%{$reset_color%}"