32 lines
949 B
Bash
32 lines
949 B
Bash
# ~/.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
|
|
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 "
|
|
|
|
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
|
|
|
|
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
|
|
source /usr/share/git/completion/git-prompt.sh
|
|
else
|
|
function __git_ps1() { echo ""; };
|
|
fi
|
|
|
|
# set PATH so it includes user's private bin if it exists
|
|
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
|
|
|
|
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc
|