From 0da7e231c4c607bee63cddcc200961d9a6f465e4 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 21 Jul 2024 04:56:37 -0400 Subject: revert: seth: drop nix-your-shell Reverts 399012d647d5e08b01b33345b7711851090ee6d4 I missed it --- users/seth/shell/fish.nix | 18 +++++++++++------- users/seth/shell/zsh.nix | 2 ++ 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'users/seth') diff --git a/users/seth/shell/fish.nix b/users/seth/shell/fish.nix index 2afdf96..0f101cd 100644 --- a/users/seth/shell/fish.nix +++ b/users/seth/shell/fish.nix @@ -20,13 +20,17 @@ in { enable = true; - # TODO: do i still need this weird sourcing? - interactiveShellInit = lib.optionalString config.seth.standalone.enable '' - set -l nixfile ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish - if test -e $nixfile - source $nixfile - end - ''; + interactiveShellInit = + '' + ${lib.getExe pkgs.nix-your-shell} fish | source + '' + # TODO: do i still need this weird sourcing? + + lib.optionalString config.seth.standalone.enable '' + set -l nixfile ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish + if test -e $nixfile + source $nixfile + end + ''; functions = { last_history_item.body = "echo $history[1]"; diff --git a/users/seth/shell/zsh.nix b/users/seth/shell/zsh.nix index 0d98b7e..5c0bc69 100644 --- a/users/seth/shell/zsh.nix +++ b/users/seth/shell/zsh.nix @@ -72,6 +72,8 @@ in zle -N clear-screen-and-scrollback bindkey '^L' clear-screen-and-scrollback + ${lib.getExe pkgs.nix-your-shell} zsh | source /dev/stdin + [[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh ''; -- cgit v1.2.3