- Joined
- Jun 2, 2009
- Messages
- 44
- Reaction score
- 0
- Points
- 6
- Location
- Chennai
- Your Mac's Specs
- MacBook Pro 15.4" 2.4GHz C2D 2GB RAM 250GB HDD Mac OS X-10.5.8, Apple iPod nano 8GB Black
Hi folks,
I have a custom script, that shows the current battery charge in my command prompt. It was quit fine till, last shutdown. But when I rebooted my machine, the battery charge was not updating on each prompt, rather, it was showing the same charge, when the terminal has been started. I found that, the script was not executing, as it was executed upon each "RETURN" hit.
I found a new variable in my environment, after I type env ( I think it is new, because, I don't remember it was shown before) and since, I am exporting PS1 (in which my custom script lies) from the .bashrc.
The only thing, I have done was installed mplayer via macport and viewed a video file using xquartz as the video output. I suspect this might have changed my settings. And now my DISPLAY variable is as follows,
DISPLAY=/tmp/launch-LjmwIR/:0
I don't have any idea, where is is being set (I have checked my .bashrc and .bash_profile files, but no trace of it).
Could anyone shed some light on it, where this variable might have been set and how to unset it?
Please correct me, if my guess is wrong and there is something else is the reason behind it?
Thanks a ton in advance.
I have a custom script, that shows the current battery charge in my command prompt. It was quit fine till, last shutdown. But when I rebooted my machine, the battery charge was not updating on each prompt, rather, it was showing the same charge, when the terminal has been started. I found that, the script was not executing, as it was executed upon each "RETURN" hit.
I found a new variable in my environment, after I type env ( I think it is new, because, I don't remember it was shown before) and since, I am exporting PS1 (in which my custom script lies) from the .bashrc.
The only thing, I have done was installed mplayer via macport and viewed a video file using xquartz as the video output. I suspect this might have changed my settings. And now my DISPLAY variable is as follows,
DISPLAY=/tmp/launch-LjmwIR/:0
I don't have any idea, where is is being set (I have checked my .bashrc and .bash_profile files, but no trace of it).
Could anyone shed some light on it, where this variable might have been set and how to unset it?
Please correct me, if my guess is wrong and there is something else is the reason behind it?
Thanks a ton in advance.