.dotfiles/.bashrc

30 lines
821 B
Bash
Raw Normal View History

2019-09-23 23:22:47 +00:00
# ~/.bashrc: executed by bash(1) for non-login shells.
2020-07-15 13:50:56 +00:00
source $HOME/.config/environment
2019-09-23 23:22:47 +00:00
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# ignoredups and ignorespace
HISTCONTROL=ignoreboth
2019-12-26 12:52:34 +00:00
HISTFILE=$HOME/.cache/bash_history
2019-09-23 23:22:47 +00:00
# append to the history file, don't overwrite it
shopt -s histappend
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
2019-12-26 12:52:34 +00:00
[ -f $HOME/.config/bash/colours ] && source $HOME/.config/bash/colours
2019-09-23 23:22:47 +00:00
2019-12-19 20:42:54 +00:00
PS1="$PURPLE\u$nc@$BLUE\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc "
2019-09-23 23:22:47 +00:00
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
source /usr/share/git/completion/git-prompt.sh
2019-09-23 23:32:18 +00:00
else
function __git_ps1() { echo ""; };
2019-09-23 23:22:47 +00:00
fi
2020-01-08 13:19:52 +00:00
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc