2016-07-21 13:35:40 +00:00
|
|
|
## Brew installed binaries
|
|
|
|
export PATH=/usr/local/sbin:/usr/local/bin:$PATH
|
|
|
|
|
|
|
|
## Activate go using gimme if any go version is available
|
2017-11-18 13:19:08 +00:00
|
|
|
GO_VER=$(curl -sSLf -m 2 'https://latest.luzifer.io/catalog-api/golang/latest.txt?p=version')
|
|
|
|
if [ -e "${HOME}/.gimme/envs/go${GO_VER}.env" ]; then
|
|
|
|
source "${HOME}/.gimme/envs/go${GO_VER}.env"
|
|
|
|
else
|
|
|
|
echo "Your Go version is outdated (latest would be ${GO_VER})"
|
|
|
|
source "${HOME}/.gimme/envs/latest.env"
|
|
|
|
fi
|
2016-07-21 13:35:40 +00:00
|
|
|
|
|
|
|
## Custom scripts
|
|
|
|
export PATH=$HOME/bin:$PATH
|
2016-08-01 15:04:09 +00:00
|
|
|
source $HOME/.zsh/go-binaries.sh
|
2016-07-21 13:35:40 +00:00
|
|
|
|
2017-02-24 13:05:55 +00:00
|
|
|
## Local installed pip package binaries
|
|
|
|
export PATH=$PATH:$HOME/.local/bin
|
|
|
|
|
2016-07-21 13:35:40 +00:00
|
|
|
## Some default settings
|
|
|
|
export EDITOR=/usr/bin/vim
|
2016-10-18 05:06:05 +00:00
|
|
|
export BROWSER=/bin/echo # enable usage of `hub browse` on remote machines
|
2016-07-21 13:35:40 +00:00
|
|
|
export AUTOGOPATH_DEFAULT=$HOME/gocode
|
|
|
|
export ANSIBLE_NOCOWS=1
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export LC_CTYPE=${LANG}
|
|
|
|
export TZ="Europe/Berlin"
|
|
|
|
|
|
|
|
## Map alt+← and alt+→ to move cursor word wise
|
|
|
|
bindkey -e
|
|
|
|
bindkey '^[[1;9C' forward-word
|
|
|
|
bindkey '^[[1;9D' backward-word
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
alias alpine='docker run --rm -ti alpine /bin/sh'
|
2017-07-02 15:36:26 +00:00
|
|
|
alias gometalinter='gometalinter --enable-all -D aligncheck -D errcheck -D lll --cyclo-over=15 -e bindata.go --vendor'
|
2017-10-27 09:43:40 +00:00
|
|
|
alias mysql='docker run --rm -ti -v $(pwd):$(pwd) -w $(pwd) mysql bash'
|
2016-08-19 14:27:14 +00:00
|
|
|
alias :q='exit'
|
2017-12-02 19:01:00 +00:00
|
|
|
alias share='AWS_REGION=us-east-1 vault2env --key=secret/aws/private -- share --bucket=share-luzifer-io-s3bucket-164ztrtyq1f35 --base-path="file/{{ printf \"%.6s\" .Hash}}" --base-url="https://share.luzifer.io/#"'
|
2016-07-21 13:35:40 +00:00
|
|
|
|
|
|
|
## Initialize GPG agent
|
|
|
|
source ${HOME}/.zsh/gpg-agent.plugin.zsh
|
|
|
|
|
|
|
|
## Load config-git functions
|
|
|
|
source ${HOME}/.zsh/config-git.zsh
|
|
|
|
|
|
|
|
## Load local-config if available
|
|
|
|
[ -e ${HOME}/.zsh/local-config.zsh ] && source ${HOME}/.zsh/local-config.zsh
|
2016-09-16 18:58:58 +00:00
|
|
|
|
|
|
|
## Clean PATH from duplicates
|
2017-12-14 14:04:05 +00:00
|
|
|
PATH=$(${HOME}/bin/path-dedup.py)
|