2019-09-16 08:42:14 +02:00
|
|
|
# if powerline-shell is available use it.
|
2018-04-08 16:31:05 +02:00
|
|
|
function _update_ps1() {
|
2019-12-01 16:51:23 +01:00
|
|
|
if hash powerline-rs 2>/dev/null; then
|
|
|
|
PS1="$(powerline-rs --shell bash $?)"
|
2018-05-04 19:28:02 +02:00
|
|
|
fi
|
2018-04-08 16:31:05 +02:00
|
|
|
}
|
|
|
|
|
2020-02-15 12:50:20 +01:00
|
|
|
# sourceIfExists
|
|
|
|
function sourceIfExists () {
|
|
|
|
[[ -f "$1" ]] && source "$1"
|
|
|
|
}
|
|
|
|
|
2017-12-06 18:30:31 +01:00
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2019-09-16 08:42:14 +02:00
|
|
|
source ~/.alias
|
2018-07-02 22:16:18 +02:00
|
|
|
source ~/.custom
|
2019-06-19 08:26:06 +02:00
|
|
|
source ~/.variables
|
2020-02-15 12:50:20 +01:00
|
|
|
sourceIfExists ~/lib/azure-cli/az.completion
|
2020-08-21 09:31:49 +02:00
|
|
|
eval "$(thefuck --alias)"
|
2019-12-03 08:53:23 +01:00
|
|
|
|
|
|
|
# evals
|
2022-03-07 14:00:00 +01:00
|
|
|
eval $(keychain --eval --quiet ~/.ssh/id_rsa)
|
2019-12-03 08:53:23 +01:00
|
|
|
eval "$(pyenv init -)"
|
|
|
|
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
2018-07-02 22:16:18 +02:00
|
|
|
|
2021-02-03 17:09:38 +01:00
|
|
|
if hash dotnet 2>/dev/null; then
|
|
|
|
export DOTNET_ROOT=/usr/share/dotnet
|
|
|
|
export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks
|
|
|
|
export PATH="${PATH}:${DOTNET_ROOT}:~/.dotnet/tools"
|
|
|
|
fi
|
2019-12-01 16:54:29 +01:00
|
|
|
|
2017-12-06 18:30:31 +01:00
|
|
|
PS1='[\u@\h \W]\$ '
|
|
|
|
|
2018-04-08 16:31:05 +02:00
|
|
|
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
|
2020-08-21 09:31:49 +02:00
|
|
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
2018-04-08 16:31:05 +02:00
|
|
|
fi
|
2019-12-03 08:53:23 +01:00
|
|
|
|
|
|
|
export PATH=$PATH:/home/mastermindzh/bin
|