Fish: Difference between revisions
m removed category applications |
DavidRambo (talk | contribs) |
||
Line 41: | Line 41: | ||
If you still want to set fish as the login shell, see [[Command Shell#Changing default shell]]. | If you still want to set fish as the login shell, see [[Command Shell#Changing default shell]]. | ||
=== Running fish interactively with zsh as system shell on darwin === | |||
Zsh users on darwin will need to use a modified version of the above snippet. As written, it presents two incompatibilities. First, being BSD-derived, MacOS's <code>ps</code> command accepts different options. Second, this is a script intended for bash, not zsh. MacOS uses zsh as its default shell. | |||
<syntaxhighlight lang="nix"> | |||
programs.zsh = { | |||
initExtra = '' | |||
if [[ $(ps -o command= -p "$PPID" | awk '{print $1}') != 'fish' ]] | |||
then | |||
exec fish -l | |||
fi | |||
'' | |||
}; | |||
</syntaxhighlight> | |||
== Configuration == | == Configuration == |