broken reading fish_prompt

main
Zynh Ludwig 2024-02-28 20:02:44 -08:00
parent ca2b59c942
commit 7b5c3b956c
1 changed files with 18 additions and 16 deletions

View File

@ -56,26 +56,28 @@
programs.fish = { programs.fish = {
enable = true; enable = true;
interactiveShellInit = '' interactiveShellInit =
set -U fish_greeting builtins.readFile ./fish/themes/val-cat/fish_prompt.fish +
''
set -U fish_greeting
if status is-interactive if status is-interactive
# Commands to run in interactive sessions can go here # Commands to run in interactive sessions can go here
end end
function fish_user_key_bindings function fish_user_key_bindings
# Execute this once per mode that emacs bindings should be used in # Execute this once per mode that emacs bindings should be used in
fish_default_key_bindings -M insert fish_default_key_bindings -M insert
# Then execute the vi-bindings so they take precedence when there's a conflict. # Then execute the vi-bindings so they take precedence when there's a conflict.
# Without --no-erase fish_vi_key_bindings will default to # Without --no-erase fish_vi_key_bindings will default to
# resetting all bindings. # resetting all bindings.
# The argument specifies the initial mode (insert, "default" or visual). # The argument specifies the initial mode (insert, "default" or visual).
fish_vi_key_bindings --no-erase insert fish_vi_key_bindings --no-erase insert
bind \cf 'fg 2>/dev/null; commandline -f repaint' bind \cf 'fg 2>/dev/null; commandline -f repaint'
end end
''; '';
}; };
programs.git = { programs.git = {