11 lines
391 B
Plaintext
11 lines
391 B
Plaintext
export PS1='\[\e[36;1;1m\][\u@\h:\[\e[36;1;2m\]\w\[\e[0m\]\[\e[36;1;1m\]] \[\e[0m\]'
|
|
export PS2='\[\e[36;1;1m\]>> \[\e[0m\]'
|
|
export HISTCONTROL=ignoredups
|
|
export HISTTIMEFORMAT='[%d %R] '
|
|
alias ls='ls --color=auto'
|
|
function gopath {
|
|
cd ${1-$PWD} || return $?
|
|
[ -d src ] && export GOPATH="$PWD" && echo "GOPATH: $PWD" && return 0
|
|
echo "Not found 'src/' directory under '$PWD'!"
|
|
}
|