fixup! home/tide: fix prompt disappearing after opening nix shell

This commit is contained in:
Guanran Wang 2024-11-29 15:49:41 +08:00
parent 720e675517
commit 8d01330ea1
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -3,11 +3,7 @@
programs.fish = {
enable = true;
interactiveShellInit =
let
tide = pkgs.fishPlugins.tide.src + "/functions/tide/configure";
in
''
interactiveShellInit = ''
set fish_greeting
set fish_cursor_default block
@ -21,7 +17,13 @@
fish_default_key_bindings -M insert
fish_vi_key_bindings --no-erase insert
end
'';
shellInit =
let
tide = pkgs.fishPlugins.tide.src + "/functions/tide/configure";
in
''
string replace -r '^' 'set -g ' < ${tide}/icons.fish | source
string replace -r '^' 'set -g ' < ${tide}/configs/lean.fish | source
string replace -r '^' 'set -g ' < ${tide}/configs/lean_16color.fish | source