Skip to content

Commit 315f964

Browse files
authored
Fix whitespace in fish shellrc template (#686)
## Summary Otherwise we get a line like: ``` # Begin Devbox Post-init Hookexport PATH="$DEVBOX_PATH_PREPEND:$PATH" ``` which is obviously not what we want. ## How was it tested? ``` SHELL=fish ./devbox shell > echo $PATH ```
1 parent 1499015 commit 315f964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/nix/shellrc_fish.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ add string-splitting logic here nor parametrize computeNixEnv based on the shell
3131
used. So here we (ab)use the fact that using "export" ahead of the variable definition
3232
makes fish do exactly what we want and behave in the same way as other shells.
3333
*/ -}}
34-
{{ if .UnifiedEnv -}}
34+
{{ if .UnifiedEnv }}
3535
export PATH="$DEVBOX_PATH_PREPEND:$PATH"
36-
{{- else -}}
36+
{{- else }}
3737
export PATH="{{ .PathPrepend }}:$PATH"
3838
{{- end }}
3939

0 commit comments

Comments
 (0)