Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
konsole with profile source
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
CyBerHigh
n00b
n00b


Joined: 12 Jun 2005
Posts: 5

PostPosted: Sun Jun 12, 2005 6:14 pm    Post subject: konsole with profile source Reply with quote

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
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Sun Jun 12, 2005 9:42 pm    Post subject: Reply with quote

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
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