Skip to content

Commit

Permalink
Fix whitespace in fish shellrc template (#686)
Browse files Browse the repository at this point in the history
## 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
```
  • Loading branch information
ipince authored Feb 24, 2023
1 parent 1499015 commit 315f964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/nix/shellrc_fish.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ add string-splitting logic here nor parametrize computeNixEnv based on the shell
used. So here we (ab)use the fact that using "export" ahead of the variable definition
makes fish do exactly what we want and behave in the same way as other shells.
*/ -}}
{{ if .UnifiedEnv -}}
{{ if .UnifiedEnv }}
export PATH="$DEVBOX_PATH_PREPEND:$PATH"
{{- else -}}
{{- else }}
export PATH="{{ .PathPrepend }}:$PATH"
{{- end }}

Expand Down

0 comments on commit 315f964

Please sign in to comment.