# ~/.bashrc: executed by bash(1) for non-login shells. # also gets invoced for login shells by ~/.profile # If not running interactively, don't do anything [ -z "$PS1" ] && return # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. shopt -s globstar # append to the history file, don't overwrite it shopt -s histappend # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=99999999 HISTFILESIZE=99999999 # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # Include more scripts if [ -f ~/.bash_aliases ]; then source ~/.bash_aliases; fi if [ -f ~/.bash_env ]; then source ~/.bash_env; fi if [ -f ~/.bash_prompt ]; then source ~/.bash_prompt; fi if [ -f /etc/bash_completion ]; then source /etc/bash_completion; fi