exporting PATH (without logging in again)

From: roberto (robcatanuto_at_yahoo.it)
Date: 02/16/05

  • Next message: Joshi: "dns_request_createvia: addressfamily not supported Error"
    Date: Wed, 16 Feb 2005 10:51:07 +0100 (CET)
    To: debian users <debian-user@lists.debian.org>
    
    

    Hello,
    i have a simple question regarding PATH environment variable:

    my PATH is actually set to
       
    ~$echo $PATH
       /bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin

    and i want to change it to:
       {$PATH}:/home/my_bin1:/home/my_bin2

    but i do NOT want to login again, but just simply get PATH changed when i open a new Konsole being
    already logged in

    my profile files are:
    [code]~$less ~/.bash_profile
    # ~/.bash_profile: executed by bash(1) for login shells.
    # the default umask is set in /etc/login.defs
    #umask 022

    # the rest of this file is commented out.

    # include .bashrc if it exists
    #if [ -f ~/.bashrc ]; then
    # source ~/.bashrc
    #fi

    # set PATH so it includes user's private bin if it exists
    #if [ -d ~/bin ] ; then
    # PATH=~/bin:"${PATH}"
    #fi
    export PATH=$PATH:/home/my_bin1:/home/my_bin2
    # do the same with MANPATH
    #if [ -d ~/man ]; then
    # MANPATH=~/man:"${MANPATH}"
    #fi
    [/code]
    and also
    [code]# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
    # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

    PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"

    if [ "$BASH" ]; then
      PS1='\u@\h:\w\$ '
    else
      if [ "`id -u`" -eq 0 ]; then
        PS1='# '
      else
        PS1='$ '
      fi
    fi

    export PATH PS1

    umask 022
    [/code]

    with this setup i only get my PATH changed in the shell where i login again, so how to get it
    changed just opening another Konsole in KDE?
    My system is:
    woody 2.4.21

    Thank you very much.

                    
    __________________________________
    Do you Yahoo!?
    Read only the mail you want - Yahoo! Mail SpamGuard.
    http://promotions.yahoo.com/new_mail

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Joshi: "dns_request_createvia: addressfamily not supported Error"

    Relevant Pages

    • Help
      ... I cant change the resolution and when i try to login ... as root in the GUI mode it says login as root is not ... Read only the mail you want - Yahoo! ... Mail SpamGuard. ...
      (Debian-User)
    • Re: Cannot login in xdm
      ... I missed to mention that cannot login even as root. ... > All your favorites on one personal page – Try My Yahoo! ... Mail SpamGuard. ...
      (Debian-User)
    • Re: Yahoo POP3 Mail with Outlook
      ... > Yahoo for login from Outlook. ... Incoming Mail (POP3): 995 ...
      (comp.mail.misc)
    • Re: Trillian Ver 3.1 saves passwords in plain Text
      ... html file to login it doesn't work. ... It looks like Trillian creates an HTML page that tries to ... Choose Yahoo from the list that pops up ... > file before transfering to the yahoo account. ...
      (Bugtraq)
    • Re: doesnt redirect
      ... have the same problem at Yahoo, and at gmail, etc. ... > after I enter info on the hotmail login site I get directed towards a> page ... Look under the Security tab. ... I believe that you must have Referrer enabled in your ...
      (microsoft.public.windows.inetexplorer.ie6.browser)