From 62c19cef8a52341781d419be94ce0a277d82b542 Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 14 May 2024 11:26:46 +0300 Subject: [PATCH] zsh: some cosmetics --- cli/.config/zsh/functions.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/.config/zsh/functions.zsh b/cli/.config/zsh/functions.zsh index 0ba8735..778b11d 100644 --- a/cli/.config/zsh/functions.zsh +++ b/cli/.config/zsh/functions.zsh @@ -60,7 +60,7 @@ gup() { command git pull $@ } gwta() { command git worktree add $@ } gwtp() { command git worktree prune -v } groot() { cd $(command git rev-parse --show-toplevel) || return 0 } -gdiff() { command git diff --color $@; } +gdiff() { command git diff --color $@ } greset() { echo "OK to reset and clean teh repo?" read -sq _ @@ -91,8 +91,8 @@ if testbin grc; then cc configure cvs df dig gcc gmake id ip last lsof make mount \ mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \ ) - for cmd in $cmds[@]; do - alias $cmd="command grc -es --colour=auto $cmd" + for cmd in $cmds; do + eval "$cmd() { command grc -es --colour=auto $cmd \$@ }" done unset cmds cmd fi