github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/internal/assets/contents/shells/fishrc.fish (about) 1 {{if ne .Owner ""}} 2 function fish_prompt 3 echo "[{{.Owner}}/{{.Name}}] % " 4 end 5 {{end}} 6 7 cd "{{.WD}}" 8 9 {{- range $K, $V := .Env}} 10 {{- if eq $K "PATH"}} 11 set -xg {{$K}} "{{$V}}:$PATH" 12 {{- else}} 13 set -xg {{$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}}