Minwoo Kim
Minwoo Kim

Reputation: 510

How to use "setenv" command in zsh shell?

I tried to install OMNeT++ in my notebook (macOS Catalina 10.15). I had follow install guide from OMNeT++ official site. But this guide description below:

OMNeT++ needs its bin/ and tools/macosx/bin directories to be in the path. To add them PATH temporarily (in the current shell only), change into the OMNeT++ directory and source the setenv script:

$ cd omnetpp-5.6.1
$. setenv

I knew "setenv" command only use "csh".

Can I change the default shell (zsh) to use the above command for the shell?

Upvotes: 2

Views: 4393

Answers (1)

chepner
chepner

Reputation: 532093

They aren't talking about the csh builtin; they're referring to a script named setenv that is to be sourced (using the . command, which is somewhat hidden in your question by its proximity to the prompt).

cd omnetpp-5.6.1
. setenv

If you are using bash, zsh, ksh, etc, you could use source as a synonym for .:

source setenv

Upvotes: 0

Related Questions