Reputation: 31
On the advice of my supervisor, I switched my shell over from bash to tcsh. However, I'm having trouble getting my Anaconda install to set to be the default python in tcsh as it was in bash.
I need to know the .tcshrc equivalent of
export PATH="/home/george/anaconda3/bin:$PATH"
which the Anaconda installer automatically placed in my .bashrc file. I have searched for ages on Google for the right syntax, but whatever I enter in the .tcshrc file doesn't seem to work for me.
Upvotes: 1
Views: 3446
Reputation:
This is the equivalent in the .cshrc file:
set path = (/home/georg/anaconda3/bin $path)
Upvotes: 2
Reputation: 4068
To set the PATH for a C Shell(tcsh) you would need to set it with the following syntax:
setenv PATH $PATH\:<path to anaconda/bin>
By default Anaconda would store it in Linux under:
/home/username/anaconda/bin
Mac OS X:
/Users/username/anaconda/bin
Windows:
C:\Users\username\Anaconda
C:\Users\username\Anaconda\Scripts
EDIT: To make this persistent in Mac OS X I created ~/.login and added the above command.
Upvotes: 1