mirror of
https://github.com/nix-community/home-manager
synced 2024-11-11 05:39:44 +01:00
fish: Fix babelization of hm-session-vars
Wrap babelfish version of hm-session-vars.sh into a function to avoid a syntax error due to the use of `return` in the script.
This commit is contained in:
parent
beb1e57d60
commit
e7ce15f75a
1 changed files with 4 additions and 2 deletions
|
@ -221,9 +221,11 @@ let
|
||||||
|
|
||||||
translatedSessionVariables =
|
translatedSessionVariables =
|
||||||
pkgs.runCommandLocal "hm-session-vars.fish" { } ''
|
pkgs.runCommandLocal "hm-session-vars.fish" { } ''
|
||||||
|
(echo "function setup_hm_session_vars;"
|
||||||
${pkgs.buildPackages.babelfish}/bin/babelfish \
|
${pkgs.buildPackages.babelfish}/bin/babelfish \
|
||||||
<${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh \
|
<${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh
|
||||||
>$out
|
echo "end"
|
||||||
|
echo "setup_hm_session_vars") > $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in a new issue