View previous topic :: View next topic |
Author |
Message |
CyBerHigh n00b
Joined: 12 Jun 2005 Posts: 5
|
Posted: Sun Jun 12, 2005 6:14 pm Post subject: konsole with profile source |
|
|
What I am trying to do is what
Code: |
$ source /etc/profile
|
does to the console. When I log in in run level 3 so none gui, it has the spify layout of something like
username@hostname {currentWorkingDir} $
but when I startx and try using Konsole. I get just this:
sh-2.05b$
I can run source /etc/profile and that works for that running of konsole as soon as I open up anouther or anouther tab it goes back to just sh-2.05b$. I then tryed:
Code: |
sh-2.05b$ export PS1="\u@\h \W\$ "
localuser@linBox localuser$
|
but the samething happens it goes back to just sh-2.05b$ whenever I start a new running of konsole or anouther tab.
Is there any way I can fix this? _________________ Join the Network. - http://gurusnetwork.org |
|
Back to top |
|
|
comprookie2000 Retired Dev
Joined: 25 Jul 2004 Posts: 925 Location: Sun City Center, Florida
|
Posted: Sun Jun 12, 2005 9:42 pm Post subject: |
|
|
I just add source /etc/profile to .bashrc
then I copy it to /root and then root will be red
I haven't had any problems but some say It is not the right way
Code: | # /etc/skel/.bashrc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $
# This file is sourced by all *interactive* bash shells on startup. This
# file *should generate no output* or it will break the scp and rcp commands.
source /etc/profile
# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"
# Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac
##uncomment the following to activate bash-completion:
#[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
fortune gentoo-forums |
_________________ http://dev.gentoo.org/~dabbott/ |
|
Back to top |
|
|
|