github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/internal/assets/contents/shells/tcshrc_append.sh (about) 1 # {{.Start}} 2 {{- range $K, $V := .Env}} 3 {{- if eq $K "PATH"}} 4 setenv {{$K}} "{{$V}}:$PATH" 5 {{- else}} 6 setenv {{$K}} "{{$V}}" 7 {{- end}} 8 {{- end}} 9 {{- if .Default }} 10 if ( $?{{.ActivatedEnv}} && ! $?ACTIVESTATE_TCSH_FIRST_RUN ) then 11 if ( -f "${{.ActivatedEnv}}/{{.ConfigFile}}" ) then 12 echo "State Tool is operating on project ${{.ActivatedNamespaceEnv}}, located at ${{.ActivatedEnv}}" 13 endif 14 endif 15 {{- end}} 16 unsetenv ACTIVESTATE_TCSH_FIRST_RUN 17 # {{.Stop}}