Hallo an alle!
Bin gerade am Debian lernen, kann mir jemand eine Anleitung geben wie ich meinen root-prompt dauerhaft ändern kann, gelingt mir trotz nachlesen nicht, habe schon versucht .bashrc zu ändern u. andere will einfach nicht gelingen.
MFG elhod.
bash, root prompt
Re: bash, root prompt
Wunderschönen Guten Abend,
was hast du den bis jetzt probiert um den prompt zu ändern?
Nachlesen kannst du eigentlich recht gut unter: http://wiki.ubuntuusers.de/Bash/Prompt.
was hast du den bis jetzt probiert um den prompt zu ändern?
Nachlesen kannst du eigentlich recht gut unter: http://wiki.ubuntuusers.de/Bash/Prompt.
Re: bash, root prompt
Danke das jemand antwortet, wede deinen link nachgehen, wenn nicht dann melde ich mich wieder, MFG elhod.
Re: bash, root prompt
Persönlich empfehle ich immer so wenig Änderungen vorzunehmen wie möglich. Ja, ich habe sogar den Editor Vim zu schätzen gelernt. Wenn man dann mal eine nackte Installation vorliegen hat braucht man nicht erst mal alles zurechtbiegen. Und der root-Prompt ist doch wohl vollkommen in Ordnung.
Re: bash, root prompt
Och, ein schmucker, roter Prompt für root macht schon was her. Was steht denn zur Zeit in der /root/.bashrc?
cu,
niemand
cu,
niemand
Re: bash, root prompt
niemand hat geschrieben:Was steht denn zur Zeit in der /root/.bashrc?
Code: Alles auswählen
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
![Smile :)](./images/smilies/icon_smile.gif)
Gruß Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.
—Bruce Schneier
Re: bash, root prompt
... was man mit folgendem Eintrag in /root/.bashrc erreichtOch, ein schmucker, roter Prompt für root macht schon was her.
Code: Alles auswählen
export PS1='\h:\w\$ '
PS1='\[\033[01;31m\]\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]\$ '