From f627b8c721c92cdaa1a15687a181e73e947eb2ef Mon Sep 17 00:00:00 2001 From: Stefan Boca Date: Tue, 20 May 2025 22:04:52 -0700 Subject: [PATCH] nix-profile{,-daemon}.fish: format with fish_indent --- scripts/nix-profile-daemon.fish.in | 5 ++--- scripts/nix-profile.fish.in | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/nix-profile-daemon.fish.in b/scripts/nix-profile-daemon.fish.in index 3fb727151..f7cc5239e 100644 --- a/scripts/nix-profile-daemon.fish.in +++ b/scripts/nix-profile-daemon.fish.in @@ -1,6 +1,5 @@ # Only execute this file once per shell. -if test -z "$HOME" || \ - test -n "$__ETC_PROFILE_NIX_SOURCED" +if test -z "$HOME" || test -n "$__ETC_PROFILE_NIX_SOURCED" exit end @@ -11,7 +10,7 @@ set --global __ETC_PROFILE_NIX_SOURCED 1 function add_path --argument-names new_path if type -q fish_add_path # fish 3.2.0 or newer - fish_add_path --prepend --global $new_path + fish_add_path --prepend --global $new_path else # older versions of fish if not contains $new_path $fish_user_paths diff --git a/scripts/nix-profile.fish.in b/scripts/nix-profile.fish.in index 3fb727151..f7cc5239e 100644 --- a/scripts/nix-profile.fish.in +++ b/scripts/nix-profile.fish.in @@ -1,6 +1,5 @@ # Only execute this file once per shell. -if test -z "$HOME" || \ - test -n "$__ETC_PROFILE_NIX_SOURCED" +if test -z "$HOME" || test -n "$__ETC_PROFILE_NIX_SOURCED" exit end @@ -11,7 +10,7 @@ set --global __ETC_PROFILE_NIX_SOURCED 1 function add_path --argument-names new_path if type -q fish_add_path # fish 3.2.0 or newer - fish_add_path --prepend --global $new_path + fish_add_path --prepend --global $new_path else # older versions of fish if not contains $new_path $fish_user_paths