Bash : Add nix comma wrapper.

This commit is contained in:
Dmitry Voronin 2024-05-04 10:23:42 +03:00
parent 765ddf2edf
commit e4070818aa
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -74,6 +74,12 @@
nix-on-droid switch --flake "''${_nix_system_config}" ''${@} nix-on-droid switch --flake "''${_nix_system_config}" ''${@}
} }
# Nix auto-run wrapper.
# Usage: , <COMMAND>
function ,() {
NIX_AUTO_RUN=1 ''${@}
}
# Autocomplete with available hosts. # Autocomplete with available hosts.
function _comp_hosts() { function _comp_hosts() {
local IFS=$'\n' local IFS=$'\n'