Skip to content

Commit

Permalink
Source fish-native Nix daemon script
Browse files Browse the repository at this point in the history
This wasn't available back when I started sourcing the Nix daemon.

I've also dropped the condition as I'd like it to blow up if that file is
somehow unavailable.
  • Loading branch information
samhh committed Dec 21, 2024
1 parent c659587 commit 2e3e5ec
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions home/shell.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
{ pkgs, ... }:

let
fishForeignEnv = {
name = "foreign-env";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "plugin-foreign-env";
rev = "dddd9213272a0ab848d474d0cbde12ad034e65bc";
sha256 = "00xqlyl3lffc5l0viin1nyp819wf81fncqyz87jx8ljjdhilmgbs";
};
};

fishCompletionSync = rec {
name = "fish-completion-sync";
src = pkgs.fetchFromGitHub {
Expand All @@ -29,16 +19,13 @@ in
# home-manager:
# https://github.com/nix-community/home-manager/issues/2451
plugins = [
fishForeignEnv
fishCompletionSync
];

shellInit = ''
set -g fish_greeting
if test -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
fenv source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
end
source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish
set -x DIRENV_LOG_FORMAT ""
if not set -q VISUAL; set -x VISUAL hx; end
Expand Down

0 comments on commit 2e3e5ec

Please sign in to comment.