.dotfiles/.bashrc

30 lines
821 B
Bash

# ~/.bashrc: executed by bash(1) for non-login shells.
source $HOME/.config/environment
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# ignoredups and ignorespace
HISTCONTROL=ignoreboth
HISTFILE=$HOME/.cache/bash_history
# 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
[ -f $HOME/.config/bash/colours ] && source $HOME/.config/bash/colours
PS1="$PURPLE\u$nc@$BLUE\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc "
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
source /usr/share/git/completion/git-prompt.sh
else
function __git_ps1() { echo ""; };
fi
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc