Skip to content

Commit

Permalink
starship: use [[ in bash init
Browse files Browse the repository at this point in the history
  • Loading branch information
rycee committed Oct 1, 2019
1 parent a5999a6 commit 3d546e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/programs/starship.nix
Expand Up @@ -71,7 +71,7 @@ in
};

programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
if [ -z "$INSIDE_EMACS" ]; then
if [[ -z $INSIDE_EMACS ]]; then
eval "$(${pkgs.starship}/bin/starship init bash)"
fi
'';
Expand Down

0 comments on commit 3d546e0

Please sign in to comment.