1
0

zsh: update

PS: zprof rocks!
This commit is contained in:
2024-02-28 23:22:33 +03:00
parent 47b2170058
commit d872b655c9
18 changed files with 140 additions and 68 deletions

View File

@@ -1,6 +1,8 @@
#!/bin/zsh
export NO_AT_BRIDGE=1
export QT_ACCESSIBILITY=0
set -a
NO_AT_BRIDGE=1
QT_ACCESSIBILITY=0
export MENUCONFIG_COLOR=blackbg
MENUCONFIG_COLOR=blackbg
set +a

21
.config/zsh/env/gopath.zsh vendored Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/zsh
z-gobin-fixup() {
(( ${+commands[go]} )) || return 0
local gobin
gobin=$(go env GOBIN)
if [ -z "${gobin}" ] ; then
local gopath
gopath=$(go env GOPATH)
[ -n "${gopath}" ] || return 1
[ -d "${gopath}" ] || return 0
gobin="${gopath}/bin"
fi
[ -d "${gobin}" ] || mkdir "${gobin}" || return 1
## already in PATH?
[ "${path[(I)${gobin}]}" = 0 ] || return 0
path=( "${gobin}" ${path} )
hash -f
}
z-gobin-fixup