Fish: Difference between revisions
m Fix missing line breaks |
m Replaced attr def with a inherit, does the same thing. |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 71: | Line 71: | ||
grc | grc | ||
# Use 3rd-party fish plugins manually packaged. | # Use 3rd-party fish plugins manually packaged. | ||
(pkgs.callPackage ../fish-colored-man.nix { | (pkgs.callPackage ../fish-colored-man.nix { inherit (pkgs.fishPlugins) buildFishPlugin; } ) | ||
]; | ]; | ||
</nowiki> | </nowiki> | ||
| Line 136: | Line 136: | ||
It is possible to set fish as the interactive non-login shell for your terminal emulator without setting it as the login shell (the one in <code>/etc/passwd</code>). | It is possible to set fish as the interactive non-login shell for your terminal emulator without setting it as the login shell (the one in <code>/etc/passwd</code>). | ||
As this is usually a user-wise setting, to configure the terminal emulator you will need to either modify its config file, or use | As this is usually a user-wise setting, to configure the terminal emulator you will need to either modify its config file, or use [[Home Manager]]. | ||
==== Setting fish as default for Kitty ==== | ==== Setting fish as default for Kitty ==== | ||
| Line 186: | Line 186: | ||
For a more detailed explanation, please see the [https://wiki.archlinux.org/title/Fish#Modify_.bashrc_to_drop_into_fish aforementioned ArchWiki page]. | For a more detailed explanation, please see the [https://wiki.archlinux.org/title/Fish#Modify_.bashrc_to_drop_into_fish aforementioned ArchWiki page]. | ||
If you are using Lix, you can change the grep condition to <code>"fish\|nix-shell"</code> so the <code>nix-shell</code> command still works, this is necessary since Lix forks before spawning the shell process so the parent process ends up being nix-shell and not fish.<ref>https://git.lix.systems/lix-project/lix/issues/1131#issuecomment-18341</ref> | |||
↵If you still want to set fish as the login shell, see [[Command Shell#Changing the default shell]]. | ↵If you still want to set fish as the login shell, see [[Command Shell#Changing the default shell]]. | ||