# defaultscheme "exfxcxdxbxegedabagacad" export CLICOLOR=1 export LSCOLORS=gxfxcxdxbxegedabagacad export HISTSIZE=2000 # History size export IGNOREEOF=42 # Ignore Ctrl+D logout terminal session export HISTCONTROL=erasedups # remove consecutive history entries export EDITOR='vim' # Default editor export TERM="xterm-256color" export GREP_OPTIONS="--color=auto" export HOMEBREW_GITHUB_API_TOKEN="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" export PS1="[a14m] \W \$ " export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export GPG_TTY=$(tty) unset SSH_AGENT_PID export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) # Springer Nature export VAULT_ADDR=https://vault.halfpipe.io VPNDIR="~/Work/anyconnect-vagrant" alias vpn-vm-up="$VPNDIR/vm-login.sh" alias vpn-up="$VPNDIR/vpn-up.sh && $VPNDIR/vpn-poll-state.sh" alias vpn-vm-suspend="$VPNDIR/vm-suspend.sh" # ==== Aliases alias wttr='curl http://wttr.in/berlin' alias la='ls -a' alias srv="python3 -m http.server" # start simple server alias tagme='ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)' alias skipci='git commit --allow-empty -m "--skip-ci"' alias rgpg='pkill pinentry-tty; gpg-connect-agent updatestartuptty /bye' alias k='kubectl' complete -F __start_kubectl k # alias g='git' # # look up the original completion command and replace the last with the alias # complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g # ==== Aliased Directories alias spc="cd ~/Work/Space/" alias spr="cd ~/Work/Springer/" alias htb="cd ~/Work/HTB/" alias otw="cd ~/Work/OTW/" # ==== $PATH modifications # Adding local/bin PATH before /bin PATH export PATH="/usr/local/bin:$PATH" export PATH="/usr/local/sbin:$PATH" # ==== rbenv config. if command -v rbenv 1>/dev/null 2>&1; then export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" fi # ==== pyenv config (and virtualenv) if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init --path)" eval "$(pyenv init -)" export PIPENV_VENV_IN_PROJECT=1 export PATH="$HOME/.local/bin:$PATH" fi # ==== GO config if [ -d $HOME/.goenv ]; then export GOENV_ROOT="$HOME/.goenv" export PATH="$GOENV_ROOT/bin:$PATH" eval "$(goenv init -)" export PATH="$GOROOT/bin:$PATH" export PATH="$PATH:$GOPATH/bin" fi # ==== Rust config if [ -f $HOME/.cargo/env ]; then source "$HOME/.cargo/env" fi # ==== NVM config # node version manager from homebrew ,the source line to move install location # and prevent Node installs being lost upon upgrading nvm. if [ -d $HOME/.nvm ]; then export NVM_DIR=~/.nvm source $(brew --prefix nvm)/nvm.sh fi # ==== MISC config if command -v thefuck 1>/dev/null 2>&1; then # allow fuck to be alias of thefuck eval $(thefuck --alias) fi # ==== Generate helm autocomplete stuff when it's not there if command -v helm 1>/dev/null 2>&1; then if [ ! -f $(brew --prefix)/etc/bash_completion.d/helm ]; then helm completion bash > $(brew --prefix)/etc/bash_completion.d/helm fi fi # ==== load all bash completions if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi # ==== MISC CowSay fortune | cowsay | lolcat