From 3a6e45ad18c519b21c9cadb2d374148647886b05 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 24 Sep 2026 04:19:59 +0530 Subject: refactor: ran newly configured formatter for the whole project --- modules/terminal/zsh/nix-aliases.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/terminal/zsh') 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 -- cgit v1.2.3