On Aug 25, 12:03 pm, Daniel Eggleston <[email protected]> wrote:
> The reason you cannot "permanently change" the cwd is that linux is using
> proper job management.  When bash spawns a child process, it inherits the
> parent's environment, but a copy of it.  Therefore, your cwd will impact
> child processes but the children cannot affect the parent.



Can't it make it an exception for one user-defined app defined in an
environment variable?


>
> What I'm not understanding is why you want to mash some graphical directory
> browser into the command line. You can, however, do something like this:
>


Trust me it is so much easier and faster.  You can fly around with
ease using nothing more than the arrow keys and the enter key.


> 1) Write your application
> 2) have it print out the directory to stdout when it exits
> 3) write a wrapper script to run your program, like this:
> # filename=programNameWrapper
> cd "$(programName)"
> 4) write an alias line in your ~/.bashrc, like this:
> alias programName="source programNameWrapper"
> 5) every time you type programName at the prompt, you will change
> directories to whatever it prints out at the end.
>
>           Daniel

I will try this.  I have some other ideas too that I am going to try.
It would be best if my app ran in the same console window as opposed
to in an external x window.  Not sure if that means I need to use
ncurses or not....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to