Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Display environment variable and custom script
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="russell23" data-source="post: 872162" data-attributes="member: 103837"><p>Hi friends,</p><p></p><p>I found what was wrong, and it is nothing to do with the environment variable (DISPLAY). Since, $PS1 overrides it.</p><p></p><p>And the problem was in my $PS1 export prompt,</p><p></p><p>previously, it was,</p><p></p><p>export PS1="${BLUE}\u${BLACK}@$(bat) ${MAGENTA}\W<img src="/mac_images/images/smilies/Money-Mouth.png" class="smilie" loading="lazy" alt=":$" title="Money Mouth :$" data-shortname=":$" />{BLACK}"</p><p></p><p>this, the problem is , there was a slash missing before the $(bat). After adding,it now my prompt works like charm.</p><p></p><p>Sorry for made you guys head scratch. Thank you rman.</p></blockquote><p></p>
[QUOTE="russell23, post: 872162, member: 103837"] Hi friends, I found what was wrong, and it is nothing to do with the environment variable (DISPLAY). Since, $PS1 overrides it. And the problem was in my $PS1 export prompt, previously, it was, export PS1="${BLUE}\u${BLACK}@$(bat) ${MAGENTA}\W:${BLACK}" this, the problem is , there was a slash missing before the $(bat). After adding,it now my prompt works like charm. Sorry for made you guys head scratch. Thank you rman. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Display environment variable and custom script
Top