github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/internal/assets/contents/shells/zshrc.sh (about) 1 if [ -f $ZDOTDIR/.zshrc ]; then source $ZDOTDIR/.zshrc; fi 2 3 cd "{{.WD}}" 4 5 {{if and (ne .Owner "") (not .PreservePs1)}} 6 export PS1="[{{.Owner}}/{{.Name}}] $PS1" 7 {{end}} 8 9 {{- range $K, $V := .Env}} 10 {{- if eq $K "PATH"}} 11 export {{$K}}="{{$V}}:$PATH" 12 {{- else}} 13 export {{$K}}="{{$V}}" 14 {{- end}} 15 {{- end}} 16 17 {{ if .ExecAlias }} 18 alias {{.ExecName}}='{{.ExecAlias}}' 19 {{ end }} 20 21 {{range $K, $CMD := .Scripts}} 22 alias {{$K}}='{{$.ExecName}} run {{$CMD}}' 23 {{end}} 24 25 echo "{{.ActivatedMessage}}" 26 27 {{.UserScripts}} 28