mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
remove doubled watches
This commit is contained in:
parent
a6b4125c93
commit
57d2738ded
1 changed files with 2 additions and 6 deletions
8
direnvrc
8
direnvrc
|
|
@ -272,7 +272,7 @@ use_flake() {
|
|||
fi
|
||||
|
||||
local files_to_watch
|
||||
files_to_watch=(".envrc" "$HOME/.direnvrc" "$HOME/.config/direnv/direnvrc")
|
||||
files_to_watch=("$HOME/.direnvrc" "$HOME/.config/direnv/direnvrc")
|
||||
|
||||
if [[ -d "$flake_dir" ]]; then
|
||||
files_to_watch+=("$flake_dir/flake.nix" "$flake_dir/flake.lock" "$flake_dir/devshell.toml")
|
||||
|
|
@ -437,7 +437,7 @@ use_nix() {
|
|||
esac
|
||||
done
|
||||
|
||||
watch_file "$HOME/.direnvrc" "$HOME/.config/direnv/direnvrc" ".envrc" "shell.nix" "default.nix"
|
||||
watch_file "$HOME/.direnvrc" "$HOME/.config/direnv/direnvrc" "shell.nix" "default.nix"
|
||||
|
||||
local need_update=0
|
||||
local watches
|
||||
|
|
@ -495,8 +495,4 @@ use_nix() {
|
|||
|
||||
_nix_import_env "$profile_rc"
|
||||
|
||||
|
||||
if [[ "$#" == 0 ]]; then
|
||||
watch_file default.nix shell.nix
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue