View previous topic :: View next topic |
Author |
Message |
polslinux Apprentice
Joined: 12 Apr 2010 Posts: 253 Location: Veneto
|
Posted: Fri May 10, 2013 8:27 am Post subject: [solved] zsh root prompt color |
|
|
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 |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Fri May 10, 2013 11:39 am Post subject: |
|
|
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 |
|
|
polslinux Apprentice
Joined: 12 Apr 2010 Posts: 253 Location: Veneto
|
Posted: Fri May 10, 2013 7:56 pm Post subject: |
|
|
i copied the file from my home to the root home and it works now
thanks! |
|
Back to top |
|
|
|