From 3d82b815b2a300b323c31b0d4fdd11e5d8fd6334 Mon Sep 17 00:00:00 2001 From: thek4n Date: Mon, 6 Jan 2025 23:47:43 +0300 Subject: [PATCH] move alias gobuild to function --- home/user/.config/zsh/aliases | 3 --- home/user/.config/zsh/functions | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/home/user/.config/zsh/aliases b/home/user/.config/zsh/aliases index d53989d..4cc8b4d 100644 --- a/home/user/.config/zsh/aliases +++ b/home/user/.config/zsh/aliases @@ -133,9 +133,6 @@ alias CAPS='xdotool key Caps_Lock' alias colors='for i in {0..255}; do printf "\x1b[38;5;${i}mcolor${i} - ██████████\n"; done' -alias gobuild='_a() { go build $@ -o . ./...}; _a' - - # clipboard if [[ "${OSTYPE}" == "linux-gnu"* ]]; then if [ -n "${DISPLAY}" ]; then diff --git a/home/user/.config/zsh/functions b/home/user/.config/zsh/functions index 9dd6d24..83b62d7 100644 --- a/home/user/.config/zsh/functions +++ b/home/user/.config/zsh/functions @@ -146,4 +146,8 @@ sha() { weather() { local city="${1}" curl "wttr.in/${city}" 2>/dev/null | head -n -1 -} \ No newline at end of file +} + +gobuild() { + go build $@ -o . ./... +}