aboutsummaryrefslogtreecommitdiffstats
path: root/modules/terminal
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 04:19:59 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 04:19:59 +0530
commit3a6e45ad18c519b21c9cadb2d374148647886b05 (patch)
treec8ad94d5be285a770a319e6a6a6fdda6021b652a /modules/terminal
parent574b4e4651495ed3fb14ef53a00374782d45b378 (diff)
downloadhome-manager-config-3a6e45ad18c519b21c9cadb2d374148647886b05.tar.gz
home-manager-config-3a6e45ad18c519b21c9cadb2d374148647886b05.zip
refactor: ran newly configured formatter for the whole project
Diffstat (limited to 'modules/terminal')
-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