1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
if [ -f /etc/bashrc ]; then . /etc/bashrc fi
if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi
if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias ll='ls --color=auto -l' alias la='ls --color=auto -A' alias l='ls --color=auto -lA' alias dir='dir --color=auto' alias vdir='vdir --color=auto'
alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
alias rm='rm -i' alias cp='cp -i' alias mv='mv -i'
if [ ! -d $HOME/workspace ]; then mkdir -p $HOME/workspace fi
export LANG="en_US.UTF-8"
export PS1='[\u@dev \W]\$ '
export WORKSPACE="$HOME/workspace"
export PATH=$HOME/bin:$PATH
export EDITOR=vim
export GOVERSION=go1.22.2
export GO_INSTALL_DIR=$HOME/go
export GOROOT=$GO_INSTALL_DIR/$GOVERSION/go
export GOPATH=$WORKSPACE/golang
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
export GO111MODULE="on"
export GOPROXY=https://goproxy.cn,direct export GOPRIVATE=
export GOSUMDB=off
export GOSRC="$WORKSPACE/golang/src"
export ONEX_ROOT="$GOSRC/github.com/superproj/onex"
export PATH=${ONEX_ROOT}/_output/platforms/linux/amd64:${ONEX_ROOT}/scripts:$PATH export OVERSION=v1.0.0
alias sp="cd $GOSRC/github.com/superproj"
alias o="cd $GOSRC/github.com/superproj/onex"
export GOSUMDB=sum.golang.org
if [ -n "$WT_SESSION" ]; then cd "$(wslpath "$(powershell.exe -Command 'Get-Location')")" fi
|