Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] zsh root prompt color
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
polslinux
Apprentice
Apprentice


Joined: 12 Apr 2010
Posts: 253
Location: Veneto

PostPosted: Fri May 10, 2013 8:27 am    Post subject: [solved] zsh root prompt color Reply with quote

I have installed ZSH two days ago and i have a small problem: when i do "su" and become root the prompt isn't colored. How can i solve this?

This is my zshrc

Code:
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=8092
SAVEHIST=8092
setopt autocd
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/polslinux/.zshrc'

#autoload -U colors && colors

autoload -Uz compinit
compinit

# End of lines added by compinstall

autoload -U compinit promptinit
compinit
promptinit; prompt gentoo

alias ls="ls --color=auto"
polslinux@gentoo ~ %


Last edited by polslinux on Fri May 10, 2013 7:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Fri May 10, 2013 11:39 am    Post subject: Reply with quote

Is this your ~/.zshrc or your /etc/zsh/zshrc? Once you call sudo all your user settings are lost, so if it is your ~/.zshrc you need a similiar /root/.zshrc.

Not really your question, but anyway, let me advertise from the mv overlay: More advanced prompt app-shells/set_prompt, and maybe you want to give also the /etc/zsh/zshrc from app-shells/zshrc-mv a try...
Back to top
View user's profile Send private message
polslinux
Apprentice
Apprentice


Joined: 12 Apr 2010
Posts: 253
Location: Veneto

PostPosted: Fri May 10, 2013 7:56 pm    Post subject: Reply with quote

i copied the file from my home to the root home and it works now :D

thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum