fixup! home/tide: fix prompt disappearing after opening nix shell
This commit is contained in:
parent
720e675517
commit
8d01330ea1
1 changed files with 17 additions and 15 deletions
|
@ -3,25 +3,27 @@
|
|||
programs.fish = {
|
||||
enable = true;
|
||||
|
||||
interactiveShellInit =
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting
|
||||
|
||||
set fish_cursor_default block
|
||||
set fish_cursor_insert line
|
||||
set fish_cursor_replace_one underscore
|
||||
set fish_cursor_replace underscore
|
||||
set fish_cursor_external line
|
||||
set fish_cursor_visual block
|
||||
|
||||
function fish_user_key_bindings
|
||||
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
|
||||
''
|
||||
set fish_greeting
|
||||
|
||||
set fish_cursor_default block
|
||||
set fish_cursor_insert line
|
||||
set fish_cursor_replace_one underscore
|
||||
set fish_cursor_replace underscore
|
||||
set fish_cursor_external line
|
||||
set fish_cursor_visual block
|
||||
|
||||
function fish_user_key_bindings
|
||||
fish_default_key_bindings -M insert
|
||||
fish_vi_key_bindings --no-erase insert
|
||||
end
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue