aboutsummaryrefslogtreecommitdiffstats
path: root/modules/terminal/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/terminal/zsh')
-rw-r--r--modules/terminal/zsh/nix-aliases.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/terminal/zsh/nix-aliases.sh b/modules/terminal/zsh/nix-aliases.sh
index 1c07d3a..671bc4c 100644
--- a/modules/terminal/zsh/nix-aliases.sh
+++ b/modules/terminal/zsh/nix-aliases.sh
@@ -1,7 +1,7 @@
# Wrappers for nix-shell and nix develop that auto-start $SHELL
nix-shell() {
for arg in "$@"; do
- if [[ "$arg" == "--run" || "$arg" == "--command" ]]; then
+ if [[ $arg == "--run" || $arg == "--command" ]]; then
command nix-shell "$@"
return
fi
@@ -11,11 +11,11 @@ nix-shell() {
}
nix() {
- if [[ "$1" == "develop" ]]; then
+ if [[ $1 == "develop" ]]; then
local args=("${@:2}")
for arg in "${args[@]}"; do
- if [[ "$arg" == "-c" || "$arg" == "--command" ]]; then
+ if [[ $arg == "-c" || $arg == "--command" ]]; then
command nix "$@"
return
fi