Allow 'hey {ch,sh}' to take arguments

This commit is contained in:
Henrik Lissner 2020-10-23 18:11:03 -04:00
parent 894495d76b
commit 74a8b35b88
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -127,8 +127,8 @@ function main {
# sh|shell) _do nix-shell "$@" ;; # sh|shell) _do nix-shell "$@" ;;
# repl) _do nix develop "$@" ;; # repl) _do nix develop "$@" ;;
ch|check) _do nix flake check "$DOTFILES";; ch|check) _do nix flake check "$@" "$DOTFILES";;
sh|show) _do nix flake show "$DOTFILES" ;; sh|show) _do nix flake show "$@" "$DOTFILES" ;;
t|test) _rebuild --fast test "$@" ;; t|test) _rebuild --fast test "$@" ;;
re|rebuild) _rebuild "${@:-switch}" ;; re|rebuild) _rebuild "${@:-switch}" ;;