From 7b5c3b956c226036fc81809d3f29cb4fc89ee93d Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Wed, 28 Feb 2024 20:02:44 -0800 Subject: [PATCH] broken reading fish_prompt --- home.nix | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/home.nix b/home.nix index 380e350..1505fcb 100644 --- a/home.nix +++ b/home.nix @@ -56,26 +56,28 @@ programs.fish = { enable = true; - interactiveShellInit = '' - set -U fish_greeting + interactiveShellInit = + builtins.readFile ./fish/themes/val-cat/fish_prompt.fish + + '' + set -U fish_greeting - if status is-interactive - # Commands to run in interactive sessions can go here - end + if status is-interactive + # Commands to run in interactive sessions can go here + end - function fish_user_key_bindings - # Execute this once per mode that emacs bindings should be used in - fish_default_key_bindings -M insert + function fish_user_key_bindings + # Execute this once per mode that emacs bindings should be used in + fish_default_key_bindings -M insert - # Then execute the vi-bindings so they take precedence when there's a conflict. - # Without --no-erase fish_vi_key_bindings will default to - # resetting all bindings. - # The argument specifies the initial mode (insert, "default" or visual). - fish_vi_key_bindings --no-erase insert + # Then execute the vi-bindings so they take precedence when there's a conflict. + # Without --no-erase fish_vi_key_bindings will default to + # resetting all bindings. + # The argument specifies the initial mode (insert, "default" or visual). + fish_vi_key_bindings --no-erase insert - bind \cf 'fg 2>/dev/null; commandline -f repaint' - end - ''; + bind \cf 'fg 2>/dev/null; commandline -f repaint' + end + ''; }; programs.git = {