macos: clean up zsh init
This commit is contained in:
parent
f8540d0e37
commit
94a4a9ff21
1 changed files with 1 additions and 3 deletions
|
@ -24,10 +24,8 @@ in
|
||||||
programs.zsh = lib.mkIf macos {
|
programs.zsh = lib.mkIf macos {
|
||||||
enable = true;
|
enable = true;
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
if [[ $(${pkgs.procps}/bin/ps $(${pkgs.procps}/bin/ps -p $$ -co "ppid=") -co "comm=") != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
if [[ $(${pkgs.procps}/bin/ps $(${pkgs.procps}/bin/ps -p $$ -co "ppid=") -co "comm=") != "fish" && -z ''${ZSH_EXECUTION_STRING} ]]
|
||||||
then
|
then
|
||||||
# shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
|
||||||
# exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
|
||||||
exec ${pkgs.fish}/bin/fish
|
exec ${pkgs.fish}/bin/fish
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue