Hello,
We are using Ubuntu 14.04 and tcsh shell.
Typically when you type the command "cd" in a terminal:
Code:
% cd
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/
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.
برچسب:
نویسنده: استخدام کار