From 3497ccc7b10c0c51794867d1f32a6996018dc62b Mon Sep 17 00:00:00 2001 From: Konano Date: Sat, 22 Jul 2023 15:42:21 +0800 Subject: [PATCH] modify zsh theme --- files/.zshrc | 1 + files/ys-simple.zsh-theme | 2 +- init_root.sh | 2 +- init_sudo.sh | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/files/.zshrc b/files/.zshrc index 6ed162f..b33283c 100644 --- a/files/.zshrc +++ b/files/.zshrc @@ -9,6 +9,7 @@ export ZSH=$HOME/.oh-my-zsh # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="ys-simple" +HOST="VM-ubuntu" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load diff --git a/files/ys-simple.zsh-theme b/files/ys-simple.zsh-theme index 525f219..ae9c013 100644 --- a/files/ys-simple.zsh-theme +++ b/files/ys-simple.zsh-theme @@ -82,7 +82,7 @@ local exit_code="%(?,,C:%{$fg[red]%}%?%{$reset_color%})" PROMPT=" %{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \ -%{$fg[green]%}%m \ +%(#,%{$fg[green]%}%m,%{$fg[cyan]%}%m) \ %{$reset_color%}in \ %{$terminfo[bold]$fg[yellow]%}%~%{$reset_color%}\ ${hg_info}\ diff --git a/init_root.sh b/init_root.sh index a5ba22e..c28f609 100755 --- a/init_root.sh +++ b/init_root.sh @@ -182,4 +182,4 @@ configure_apt_install configure_zsh configure_tmux configure_iptables -configure_hostname +# configure_hostname diff --git a/init_sudo.sh b/init_sudo.sh index 165685c..fa5ab0d 100755 --- a/init_sudo.sh +++ b/init_sudo.sh @@ -182,4 +182,4 @@ configure_apt_install configure_zsh configure_tmux configure_iptables -configure_hostname +# configure_hostname