mirror of
https://github.com/NixOS/nix
synced 2025-06-24 13:51:16 +02:00
nix-profile{,-daemon}.fish: format with fish_indent
This commit is contained in:
parent
e22142e11a
commit
f627b8c721
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue