2019-09-23 23:22:47 +00:00
|
|
|
# ~/.bashrc: executed by bash(1) for non-login shells.
|
|
|
|
|
|
|
|
# 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 "
|
|
|
|
|
2020-01-08 13:19:52 +00:00
|
|
|
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
|
2019-12-19 20:42:54 +00:00
|
|
|
|
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
|
|
|
# set PATH so it includes user's private bin if it exists
|
2020-01-27 10:46:01 +00:00
|
|
|
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
|
2020-01-08 13:19:52 +00:00
|
|
|
|
|
|
|
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc
|