Skip to content

set environment variable in different shell

csh tcsh

set A=B
setenv VAR VALUE
setenv PATH "/bin:/usr/bin:/usr/sbin:/usr/local/bin"

sh bash zsh

A=B
export PATH="/usr/local/bin:${PATH}"