mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
adding some customizations
This commit is contained in:
parent
fe6935bef8
commit
1076b6aa67
1 changed files with 17 additions and 4 deletions
|
|
@ -1,11 +1,24 @@
|
|||
local user="$(whoami)"
|
||||
|
||||
if [ "$user" = "root" ]; then
|
||||
PROMPT="%{$fg[cyan]%}[%{$fg[yellow]%}_ROOT_%{$reset_color%}@%{$fg[red]%}$(~/scripts/shorthost) %{$fg[yellow]%}%~%{$fg[cyan]%}]%{$fg[red]%}%%%{$reset_color%} "
|
||||
local user_host="%{$fg[yellow]%}_ROOT_%{$reset_color%}@%{$fg[red]%}$(~/scripts/shorthost)"
|
||||
local prompt_color=red
|
||||
elif [ "$user" = "komitee" ] || [ "$user" = "mkomitee" ]; then
|
||||
PROMPT="%{$fg[cyan]%}[%{$fg[red]%}%{$fg[yellow]%}@%{$fg[magenta]%}$(~/scripts/shorthost) %{$fg[yellow]%}%~%{$fg[cyan]%}]%{$reset_color%}%% "
|
||||
local user_host="%{$fg[red]%}%{$fg[yellow]%}@%{$fg[magenta]%}$(~/scripts/shorthost)"
|
||||
local prompt_color=white
|
||||
else
|
||||
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}$(~/scripts/shorthost) %{$fg[yellow]%}%~ %{$reset_color%}%% "
|
||||
PROMPT="%{$fg[cyan]%}[%{$fg[yellow]%}%n%{$fg[blue]%}@%{$fg[magenta]%}$(~/scripts/shorthost) %{$fg[yellow]%}%~%{$fg[cyan]%}]%{$fg[green]%}%%%{$reset_color%} "
|
||||
local user_host="%{$fg[yellow]%}%n%{$fg[blue]%}@%{$fg[magenta]%}$(~/scripts/shorthost)"
|
||||
local prompt_color=green
|
||||
fi
|
||||
|
||||
PROMPT="%{$fg[cyan]%}[${user_host} %{$fg[yellow]%}%~%{$fg[cyan]%}]%{$fg[$prompt_color]%}%%%{$reset_color%} "
|
||||
|
||||
MODE_INDICATOR="%{$fg_bold[yellow]%}<N>%{$reset_color%}"
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}("
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||
RPROMPT='$(git_prompt_info)$(vi_mode_prompt_info)'
|
||||
|
||||
# vim: set ft=zsh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue