Skip to main content
added 2 characters in body
Source Link
Sachin Divekar
  • 6.1k
  • 1
  • 27
  • 20

For small tasks such as thesethis, instead of creating script, create an alias like this,

$ alias cdproj='cd /dir/web/www/proj' 

You should add this to your .bashrc file, if you want it set for every interactive shell.

Now you can run this as $ cdproj.

For small tasks such as these instead of creating script create an alias like this,

alias cdproj='cd /dir/web/www/proj' 

You should add this to your .bashrc file, if you want it set for every interactive shell.

Now you can run this as $ cdproj.

For small tasks such as this, instead of creating script, create an alias like this,

$ alias cdproj='cd /dir/web/www/proj' 

You should add this to your .bashrc file, if you want it set for every interactive shell.

Now you can run this as $ cdproj.

added 141 characters in body
Source Link
Sachin Divekar
  • 6.1k
  • 1
  • 27
  • 20

As a workaroundFor small tasks such as these instead of creating script create an alias like this,

alias cdproj='cd /dir/web/www/proj' 

You should add this to your .bashrc file, if you want it set for every interactive shell.

Now you can run this as $ cdproj.

As a workaround create an alias like this,

alias cdproj='cd /dir/web/www/proj' 

Now you can run this as $ cdproj

For small tasks such as these instead of creating script create an alias like this,

alias cdproj='cd /dir/web/www/proj' 

You should add this to your .bashrc file, if you want it set for every interactive shell.

Now you can run this as $ cdproj.

Source Link
Sachin Divekar
  • 6.1k
  • 1
  • 27
  • 20

As a workaround create an alias like this,

alias cdproj='cd /dir/web/www/proj' 

Now you can run this as $ cdproj