Dear Zenaan, I tried the same by putting those code in a script - myprompt.bash like below #!/usr/bin/bash PS1=': ' In terminal, when I run like '. ./myprompt.bash', it is working as expected. Also I tried with alias like below and that also worked for me. alias myprompt="export PS1=': '" Simply to run like 'myprompt'(without quotes) in terminal. Regards, Balamurugan R On 09/07/2013 01:08 PM, Zenaan Harkness wrote:
On 9/7/13, der.hans <deb-user@lufthans.com> wrote:Am 07. Sep, 2013 schw�tzte Zenaan Harkness so: moin moin Zenaan, Rather than all the convolutions of command substitution, how about just using a function that's in your profile or bashrc? $ cat /tmp/bashrc function changeps() { export PS1= ' } $ . /tmp/bashrc $ changeps : Add arguments to the fx() for your different options :).Ahh. Even easier, and better (no tmpfile). Wunderbah! Thank you. Appreciated, Zenaan