From 0c1f7cae6b111ab2d3bd39c85640349d7e621764 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Fri, 12 Apr 2024 23:06:03 -0400 Subject: cursed --- home-config/fish/config.fish | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'home-config/fish/config.fish') diff --git a/home-config/fish/config.fish b/home-config/fish/config.fish index 5cbc322..c842712 100644 --- a/home-config/fish/config.fish +++ b/home-config/fish/config.fish @@ -1,3 +1,19 @@ +if status is-login + eval "$(guix package --search-paths \ + -p ~/.config/guix/current \ + -p ~/.guix-profile \ + -p /run/current-system/profile)" + + fish_add_path -Pp ~/.local/bin + fish_add_path -Pp ~/.guix-home/profile/bin + fish_add_path -Pp /run/setuid-programs + fish_add_path -Pp ~/.nix-profile/bin + set -gx EDITOR nvim + set -gax XDG_DATA_DIRS ~/.nix-profile/share + fenv source ~/.profile + # Bad + find ~/.config/fish/ -name "*tmp*" -exec {} + +end if status is-interactive # Commands to run in interactive sessions can go here alias quit exit @@ -12,10 +28,6 @@ if status is-interactive alias ls "ls -p --color=auto" alias grep "grep --color=auto" alias ll "ls -l" - set -gx EDITOR nvim - set -gax XDG_DATA_DIRS ~/.nix-profile/share - fish_add_path ~/.local/bin - fish_add_path ~/.nix-profile/bin zoxide init fish | source -- cgit v1.2.3