fix zsh custom

This commit is contained in:
Konano 2023-11-30 14:12:10 +08:00
parent afe28694fb
commit 836f33e50f
3 changed files with 6 additions and 4 deletions

View File

@ -5,12 +5,12 @@ if [ -d "$HOME/.local/bin" ]; then
fi
# Docker
if [ -f "~/.config/systemd/user/docker.service" ]; then
if [ -f "$HOME/.config/systemd/user/docker.service" ]; then
export DOCKER_HOST=unix:///run/user/$(id -u)/docker.sock
fi
# Golang
if command_exists go; then
if [ -f "/usr/local/go/bin/go" ]; then
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$HOME/.local/go/bin
fi

View File

@ -1,5 +1,5 @@
# Golang
if command_exists go; then
if [ -f "/usr/local/go/bin/go" ]; then
export GO111MODULE=on
export GOPROXY=https://goproxy.cn,direct
fi

View File

@ -114,9 +114,11 @@ configure_zsh() {
cp $scriptdir/files/zsh/20-function.zsh ~/.oh-my-zsh/custom/
cp $scriptdir/files/zsh/50-alias.zsh ~/.oh-my-zsh/custom/
cp $scriptdir/files/zsh/80-env.zsh ~/.oh-my-zsh/custom/
cp $scriptdir/files/zsh/81-proxy.zsh ~/.oh-my-zsh/custom/
cp $scriptdir/files/zsh/90-other.zsh ~/.oh-my-zsh/custom/
cp $scriptdir/files/zsh/ys-simple.zsh-theme ~/.oh-my-zsh/custom/themes/
[ $abroad -eq 1 ] && return
cp $scriptdir/files/zsh/81-proxy.zsh ~/.oh-my-zsh/custom/
fi
}