2017-12-06 18:30:31 +01:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
|
|
|
|
2018-04-08 16:31:05 +02:00
|
|
|
function _update_ps1() {
|
2018-05-04 19:28:02 +02:00
|
|
|
if hash powerline-shell 2>/dev/null; then
|
|
|
|
PS1=$(powerline-shell $?)
|
|
|
|
fi
|
2018-04-08 16:31:05 +02:00
|
|
|
}
|
|
|
|
|
2017-12-06 18:30:31 +01:00
|
|
|
source ~/.alias
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2018-07-02 22:16:18 +02:00
|
|
|
source ~/.custom
|
2019-06-19 08:26:06 +02:00
|
|
|
source ~/.variables
|
2018-07-02 22:16:18 +02:00
|
|
|
|
2018-07-20 22:12:59 +02:00
|
|
|
# Fix .netcore paths if dotnet is installed
|
|
|
|
if hash dotnet 2>/dev/null; then
|
2019-05-21 18:31:28 +02:00
|
|
|
export DOTNET_ROOT=/opt/dotnet
|
|
|
|
export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks
|
|
|
|
export PATH="${PATH}:${DOTNET_ROOT}:~/.dotnet/tools"
|
2018-07-20 22:12:59 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2017-12-06 18:30:31 +01:00
|
|
|
#... :P fancy stuffs
|
2018-04-09 13:44:21 +02:00
|
|
|
#screenfetch -t -A "UBUNTU"
|
|
|
|
neofetch
|
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
|
|
|
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
|
|
|
fi
|