Link to home
Start Free TrialLog in
Avatar of ShannonBoy
ShannonBoy

asked on

ALIASES sourcing .cshrc file

i would like to know how to setup an alias that will go from the current directory to home dir and source the .cshrc file and return to the original working directory

eg.
I'm in /Home/MyDirectory

to source, I need to go to the /Home directory

and then I want to go back to /Home/MyDirectory automatically.
Avatar of ozo
ozo
Flag of United States of America image

alias setup 'pushd /Home;source .cshrc;popd'
ASKER CERTIFIED SOLUTION
Avatar of vulkanr
vulkanr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ShannonBoy
ShannonBoy

ASKER

ozo your comment doesnt work sorry...

but vulkanr solved it excellent, thank bud!!!