fix zsh custom
This commit is contained in:
parent
afe28694fb
commit
836f33e50f
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user