dotfiles/bash/.bashrc

22 lines
381 B
Bash
Raw Normal View History

2017-12-06 18:30:31 +01:00
#
# ~/.bashrc
#
function _update_ps1() {
PS1=$(powerline-shell $?)
}
2017-12-06 18:30:31 +01:00
source ~/.alias
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
eval $(thefuck --alias)
#... :P fancy stuffs
screenfetch -t -A "UBUNTU"
PS1='[\u@\h \W]\$ '
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi