Skip to content

Commit

Permalink
refactor: Rename .any-nix-run-wrapper -> .any-nix-wrapper
Browse files Browse the repository at this point in the history
The command is not called `nix run` anymore but `nix shell`. However,
we can't name the file `.any-nix-shell-wrapper`, because that name is
already taken for `nix-shell` (with dash).

Signed-off-by: Sebastian Hasler <sebastian.hasler@sec.uni-stuttgart.de>
  • Loading branch information
haslersn committed Dec 29, 2020
1 parent 518837e commit b90891b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions bin/any-nix-shell
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end
function nix
if test \$argv[1] = shell
set argv[1] fish
$(which .any-nix-run-wrapper) \$argv
$(which .any-nix-wrapper) \$argv
else
command nix \$argv
end
Expand Down Expand Up @@ -53,7 +53,7 @@ function nix-shell () {
function nix () {
if [[ \$1 == shell ]]; then
shift
$(which .any-nix-run-wrapper) zsh "\$@"
$(which .any-nix-wrapper) zsh "\$@"
else
command nix "\$@"
fi
Expand Down

0 comments on commit b90891b

Please sign in to comment.