Re: [CentOS] Scripting a directory change on CentOS

2007-07-31 Thread William L. Maltby
On Tue, 2007-07-31 at 17:29 -0500, Les Mikesell wrote: > William L. Maltby wrote: > > On Mon, 2007-07-30 at 12:49 -0400, James B. Byrne wrote: > >> > > > > > >> I have to work with a long path to a project working directory and I would > >> like to have a simple script called "current" which wou

Re: [CentOS] Scripting a directory change on CentOS

2007-07-31 Thread Les Mikesell
William L. Maltby wrote: On Mon, 2007-07-30 at 12:49 -0400, James B. Byrne wrote: I have to work with a long path to a project working directory and I would like to have a simple script called "current" which would produce the same effect as issuing this from the shell: cd ./very/long/path

Re: [CentOS] Scripting a directory change on CentOS

2007-07-31 Thread William L. Maltby
On Mon, 2007-07-30 at 12:49 -0400, James B. Byrne wrote: > > I have to work with a long path to a project working directory and I would > like to have a simple script called "current" which would produce the same > effect as issuing this from the shell: > > cd ./very/long/path/to/obscurely/titl

Re: [CentOS] Scripting a directory change on CentOS

2007-07-30 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James B. Byrne wrote: > This is probably a FAQ item but despite searching extensively with google > I am unable to find an answerer to this question. Perhaps I am using the > wrong words. In any case, at the risk of inducing some mirth at my > ignoran

Re: [CentOS] Scripting a directory change on CentOS

2007-07-30 Thread James B. Byrne
On Mon, July 30, 2007 13:02, Johnny Hughes wrote: > > In this case the use of an alias is probably what you want ... > > alias current='cd /path' > > You can then type current at the command prompt can go there. > > You can put that command in your .bashrc with your other aliases as well > to make

Re: [CentOS] Scripting a directory change on CentOS

2007-07-30 Thread Johnny Hughes
James B. Byrne wrote: > This is probably a FAQ item but despite searching extensively with google > I am unable to find an answerer to this question. Perhaps I am using the > wrong words. In any case, at the risk of inducing some mirth at my > ignorance, how can one script a cd command so that tha