home/tide: fix prompt disappearing after opening nix shell
This commit is contained in:
parent
aa40eca635
commit
720e675517
1 changed files with 20 additions and 22 deletions
|
@ -3,7 +3,11 @@
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit =
|
||||||
|
let
|
||||||
|
tide = pkgs.fishPlugins.tide.src + "/functions/tide/configure";
|
||||||
|
in
|
||||||
|
''
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
|
|
||||||
set fish_cursor_default block
|
set fish_cursor_default block
|
||||||
|
@ -18,15 +22,9 @@
|
||||||
fish_vi_key_bindings --no-erase insert
|
fish_vi_key_bindings --no-erase insert
|
||||||
end
|
end
|
||||||
|
|
||||||
tide configure --auto \
|
string replace -r '^' 'set -g ' < ${tide}/icons.fish | source
|
||||||
--style=Lean \
|
string replace -r '^' 'set -g ' < ${tide}/configs/lean.fish | source
|
||||||
--prompt_colors='16 colors' \
|
string replace -r '^' 'set -g ' < ${tide}/configs/lean_16color.fish | source
|
||||||
--show_time=No \
|
|
||||||
--lean_prompt_height='Two lines' \
|
|
||||||
--prompt_connection=Disconnected \
|
|
||||||
--prompt_spacing=Sparse \
|
|
||||||
--icons='Few icons' \
|
|
||||||
--transient=No
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins =
|
plugins =
|
||||||
|
|
Loading…
Add table
Reference in a new issue