mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
adding my theme
This commit is contained in:
parent
a615e5c9d9
commit
501302fd2a
1 changed files with 11 additions and 0 deletions
11
themes/komitee.zsh-theme
Normal file
11
themes/komitee.zsh-theme
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
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%} "
|
||||||
|
elif [ "$user" = "komitee" ] || [ "$user" = "mkomitee" ]; then
|
||||||
|
PROMPT="%{$fg[cyan]%}[%{$fg[red]%}%{$fg[yellow]%}@%{$fg[magenta]%}$(~/scripts/shorthost) %{$fg[yellow]%}%~%{$fg[cyan]%}]%{$reset_color%}%% "
|
||||||
|
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%} "
|
||||||
|
fi
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue