Skip to content
Snippets Groups Projects
Commit 3c92269d authored by Ayaz Badouraly's avatar Ayaz Badouraly
Browse files

Splitting code

parent 4c604eb7
No related branches found
No related tags found
No related merge requests found
# VIA ZSH Theme - Preview: ASAP
# Fork from the historical VIA ZSH Theme
PROMPT='%{$fg_bold[cyan]%}%T %{$fg_bold[red]%}%n%{$fg_bold[yellow]%}@%{$fg_bold[white]%}%m %{$fg_bold[green]%}%c%{$fg_bold[yellow]%}%% '
local clock="%{$fg_bold[cyan]%}%T%{$reset_color%}"
# Check the UID
if [[ $UID -ne 0 ]];
then
# normal user
local user="%{$fg_bold[red]%}%n%{$reset_color%}"
local eol="%{$fg_bold[yellow]%}%%%{$reset_color%}"
else
# root
local user="%{$fg_bold[blue]%}%n%{$reset_color%}"
local eol="%{$fg_bold[yellow]%}#%{$reset_color%}"
fi
local user_host="${user}%{$fg_bold[yellow]%}@%{$fg_bold[white]%}%m%{$reset_color%}"
local current_dir="%{$fg_bold[green]%}%c%{$reset_color%}"
PROMPT="${clock} ${user_host} ${current_dir}${eol} "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment