aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authortomberek <tomberek@users.noreply.github.com>2021-12-23 15:22:52 -0500
committerGitHub <noreply@github.com>2021-12-23 15:22:52 -0500
commitf4041893688914db9a3598ce5f6186b049a48678 (patch)
tree80c468f0bf29f26f6600b0bf90d34b4415f6968b /misc
parentb6cc0a704d8c1432e230ff65d4b74ea7114a730b (diff)
parentaf553b20902b8b8efbccab5f880879b09e95eb32 (diff)
Merge branch 'master' into flake_search
Diffstat (limited to 'misc')
-rw-r--r--misc/bash/completion.sh6
-rw-r--r--misc/fish/completion.fish1
-rw-r--r--misc/launchd/org.nixos.nix-daemon.plist.in5
3 files changed, 9 insertions, 3 deletions
diff --git a/misc/bash/completion.sh b/misc/bash/completion.sh
index bea2a40bc..8fc224792 100644
--- a/misc/bash/completion.sh
+++ b/misc/bash/completion.sh
@@ -7,13 +7,15 @@ function _complete_nix {
local completion=${line%% *}
if [[ -z $have_type ]]; then
have_type=1
- if [[ $completion = filenames ]]; then
+ if [[ $completion == filenames ]]; then
compopt -o filenames
+ elif [[ $completion == attrs ]]; then
+ compopt -o nospace
fi
else
COMPREPLY+=("$completion")
fi
- done < <(NIX_GET_COMPLETIONS=$cword "${words[@]}")
+ done < <(NIX_GET_COMPLETIONS=$cword "${words[@]/#\~/$HOME}")
__ltrim_colon_completions "$cur"
}
diff --git a/misc/fish/completion.fish b/misc/fish/completion.fish
index bedbefaf8..c6b8ef16a 100644
--- a/misc/fish/completion.fish
+++ b/misc/fish/completion.fish
@@ -19,7 +19,6 @@ end
function _nix_accepts_files
set -l response (_nix_complete)
- # First line is either filenames or no-filenames.
test $response[1] = 'filenames'
end
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in b/misc/launchd/org.nixos.nix-daemon.plist.in
index f1b439840..da1970f69 100644
--- a/misc/launchd/org.nixos.nix-daemon.plist.in
+++ b/misc/launchd/org.nixos.nix-daemon.plist.in
@@ -25,5 +25,10 @@
<string>/var/log/nix-daemon.log</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
+ <key>SoftResourceLimits</key>
+ <dict>
+ <key>NumberOfFiles</key>
+ <integer>4096</integer>
+ </dict>
</dict>
</plist>