Find the answer to your Linux question:
Results 1 to 2 of 2
If I want to change the PS1 now and I want that also if I will run bash I will see the same PS1, do I need to defice the ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28

    Built-In variables need to export?

    If I want to change the PS1 now and I want that also if I will run bash I will see the same PS1, do I need to defice the bash with export?

    for example :
    #> PS1="X>"
    X> bash
    X> bash ????? or in order the PS1 to be X> in this point I need to export the PS1

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Posts
    4
    yah u need to export PS1
    use this command
    export PS1

    then u will get same prompt in every shell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...