.bashrc added

This commit is contained in:
Jonas Forsberg 2020-03-30 08:45:14 +02:00
commit a18cb8dd30
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

64
.bashrc Normal file
View File

@ -0,0 +1,64 @@
export LIBVIRT_DEFAULT_URI="qemu:///system"
export HISTSIZE=-1
export HISTFILESIZE=-1
test -s ~/.alias && . ~/.alias || true
export PATH=~/.local/bin:"$PATH"
[[ -d ~/go/bin ]] && export PATH="$PATH":$HOME/go/bin
# needed for pw function and gnupg.vim
GPG_TTY=$(tty)
export GPG_TTY
export PWHOME="$HOME/Nextcloud/passwords"
#make sure we only run one ssh-agent
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [[ ! "$SSH_AUTH_SOCK" ]]; then
eval "$(<"$XDG_RUNTIME_DIR/ssh-agent.env")"
fi
[[ -x "$(command -v kubectl)" ]] && source <(kubectl completion bash)
[[ -x "$(command -v helm)" ]] && source <(helm completion bash)
# Go Bullet Train settings
if [[ -f ~/go/bin/gbt ]]; then
export GBT_SHELL="$0"
export VIRTUAL_ENV_DISABLE_PROMPT=1
export GBT__SSH_CATCH_PSEUDO_TERMINAL=true
export PS1='$(~/go/bin/gbt $?)'
# export GBT_CARS='OS, Git, Dir, Custom1, Custom2, Custom3, PyVirtEnv, Status, Sign'
export GBT_CARS='OS, Git, Dir, PyVirtEnv, Status, Sign'
export GBT_CAR_PYVIRTENV_FORMAT='{{ Icon }}'
export GBT_CAR_DIR_BG='dark_gray'
export GBT_CAR_DIR_DEPTH='3'
export GBT_CAR_STATUS_FORMAT=' {{ Code }} '
export GBT_CAR_SIGN_USER_TEXT=''
# export GBT_CAR_CUSTOM1_TEXT_TEXT='MyDot: error'
# export GBT_CAR_CUSTOM1_BG='red'
# export GBT_CAR_CUSTOM1_DISPLAY_CMD="/home/jonas/.local/bin/mydot_gbt_status.sh check_error"
# export GBT_CAR_CUSTOM1_TEXT_TEXT='MyDot: err'
# export GBT_CAR_CUSTOM2_BG='green'
# export GBT_CAR_CUSTOM2_FG='black'
# export GBT_CAR_CUSTOM2_TEXT_TEXT='MyDot: commit'
# export GBT_CAR_CUSTOM2_DISPLAY_CMD="/home/jonas/.local/bin/mydot_gbt_status.sh check_status"
# export GBT_CAR_CUSTOM3_TEXT_TEXT='MyDot: push'
# export GBT_CAR_CUSTOM3_BG='green'
# export GBT_CAR_CUSTOM3_FG='black'
# export GBT_CAR_CUSTOM3_DISPLAY_CMD="/home/jonas/.local/bin/mydot_gbt_status.sh check_pull"
#Prompt forward:
export GBT__SSH_IGNORE=(crs)
export GBT__HOME="${HOME}/go/src/github.com/jtyr/gbt"
export GBT__CARS_REMOTE='OS, Hostname, Git, Dir, Status, Sign'
export GBT__THEME_SSH="${HOME}/.gbts_theme.sh"
source ~/go/src/github.com/jtyr/gbt/sources/gbts/cmd/local.sh
alias ssh='gbt_ssh'
alias sudo='gbt_sudo'
fi
type go >/dev/null 2>&1 && export GOPATH=$(go env GOPATH)
[[ -f ~/.functions.sh ]] && source ~/.functions.sh
[[ -f ~/Develop/sps/completion.sh ]] && source ~/Develop/sps/completion.sh
[[ -f ~/Develop/MyDot/completion.sh ]] && source ~/Develop/MyDot/completion.sh