|
|
A simple way to open files in X11 applications
You should NOT have your .bashrc read your .bash_profile!!
A simple way to open files in X11 applications
Standard practice is to put environment variables (PATH, MANPATH, etc.) and aliases into your .bashrc. Your .bash_profile should contain start-up commands, like bash 'shopt' calls, a nice daily 'fortune', and any 'stty' calls.
Interesting. The various rc files I've inherited have always had it the other way around, though they could certainly be wrong. When the login vs. non-login shell issue comes up it's always presented as, "for login shells these files get loaded and for non-login shells these ones do," but what I've never heard explained is why anybody should care about login vs. non-login shells. I understand why interactive vs. non-interactive is important, but what's the difference if a shell is login or non-login?
A simple way to open files in X11 applications
The simplest case I can give you about why you would want to differentiate is this: I'm on host-a and I want to run a "mybackup" script that I wrote on host-b. I can do this:
A simple way to open files in X11 applications
I don't use Apple's X11 but rather XFree86 and it behaves that way too. And NO, I do NOT want an XTerm window to open every time I launch XWindows. What is the purpose of a GUI if I MUST have a CLI running active? Then when you accidentally close the CLI window the GUI closes since it is dependant.
A simple way to open files in X11 applications
How to avoid launching xterm when starting X11: take a look at my xinitrc:
You just have to remove "xterm" line if you have them somewhere in your .xinitrc |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|