move alias gobuild to function

This commit is contained in:
thek4n 2025-01-06 23:47:43 +03:00
parent 3c1b815582
commit 3d82b815b2
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -146,4 +146,8 @@ sha() {
weather() {
local city="${1}"
curl "wttr.in/${city}" 2>/dev/null | head -n -1
}
}
gobuild() {
go build $@ -o . ./...
}