dotfiles/bash/.bashrc

32 lines
625 B
Bash
Raw Normal View History

2017-12-06 18:30:31 +01:00
#
# ~/.bashrc
#
function _update_ps1() {
if hash powerline-shell 2>/dev/null; then
PS1=$(powerline-shell $?)
fi
}
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
# Fix .netcore paths if dotnet is installed
if hash dotnet 2>/dev/null; then
export PATH="$PATH:~/.dotnet/tools"
export DOTNET_ROOT=$(dirname $(realpath $(which dotnet)))
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]\$ '
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi