خرید بک لینک

Hello,

We are using Ubuntu 14.04 and tcsh shell.

Typically when you type the command "cd" in a terminal:

Code:

% cd
It changes directory to your $HOME directory.

We want to change this behavior by creating an alias to change to a directory other than $HOME.

I've tried using commands in the .chsrc file such as:

Code:

alias cd 'cd /different/directory/
Given the setup we are working with, we can't change the $HOME directory nor use bash.

Since we are using tcsh, we are restricted to using aliases and not functions.

Is this possible? Again, we just want to change to "/different/directory" only when the command "cd" is used with no arguments/path specified. We want it to behave as usual if a path is specified with the "cd" command.

Any input/help is appreciated.

Thank you.

c.

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 11 مرداد 1395 ساعت: 8:12

صفحه بندی