Compare commits

..

No commits in common. "5fd9452a6c187e7d4cbfcc51bd426eecee5a0bff" and "e62a7781b4befda3fe84b654086685cdfac25b46" have entirely different histories.

2 changed files with 4 additions and 12 deletions

View file

@ -1,4 +1,4 @@
function zsh_spwd {
function spwd {
paths=(${(s:/:)PWD})
cur_path='/'
@ -21,7 +21,7 @@ function zsh_spwd {
echo
}
function zsh_root_color {
function root_color {
if test "$EUID" -eq 0
then
echo "%{$fg_bold[green]%}"
@ -30,11 +30,11 @@ function zsh_root_color {
fi
}
function zsh_exitcode_color {
function exitcode_color {
echo "%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})"
}
PROMPT='$(zsh_root_color)$(whoami)%{$reset_color%}@$(zsh_exitcode_color)$(hostname -s) %{$fg[cyan]%}$(zsh_spwd)%{$reset_color%} $(git_prompt_info)'
PROMPT='$(root_color)$(whoami)%{$reset_color%}@$(exitcode_color)$(hostname -s) %{$fg[cyan]%}$(spwd)%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "

View file

@ -8,14 +8,6 @@
alias s='sudo su - root -s /usr/bin/zsh'
function hhtop {
# mkdir -p ~/.config/htop
# cp /etc/htoprc.global ~/.config/htop/htoprc
# cp /etc/htoprc.global ~/.htoprc
rm -rf ~/.config/htop ~/.htoprc
htop
}
ZSH_THEME=bw
DISABLE_AUTO_UPDATE=true
plugins=(