QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Changing the terminal prompt |
Ref. No. |
QNX.000010373 |
Category(ies) |
Configuration |
Issue |
How do I change the terminal prompt so that it displays my current directory? |
Solution |
Add the following line to your .profile file in your home directory:
export PS1='$PWD->'
Note: In order for your .profile to be executed you must be launching a login terminal. Right click on the shelf and choose 'Setup'. Click on Terminal and in the 'Command to Launch' box add the -l ("el") option after pterm. You also have to modify you Window Manager shortcut menu. In your home directory/.ph/wm modify the wm.menu file to include the -l option after pterm. The changes to the shortcut menu will only take place after you log out of photon and back in. |
|