From ee0faa7242401d13ec5ed158a9eaff2a017c1a12 Mon Sep 17 00:00:00 2001 From: fanyx Date: Wed, 19 May 2021 12:29:45 +0200 Subject: [PATCH] Add .debian.bashrc --- .debian.bashrc | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .debian.bashrc diff --git a/.debian.bashrc b/.debian.bashrc new file mode 100644 index 0000000..76f5503 --- /dev/null +++ b/.debian.bashrc @@ -0,0 +1,40 @@ +#!/bin/bash + +# +# .debian.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +################################# +# - bash_aliases +# - bash-completion + +[[ -r ~/.ps1 ]] && . ~/.ps1 + +[[ -r ~/.bash_aliases ]] && . ~/.bash_aliases + +[[ -r /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion + +[[ -f /etc/bash_completion.d/git-prompt ]] && . /etc/bash_completion.d/git-prompt + +################################# +# Debian Defaults +# +# don't put duplicate lines or lines starting with space in the history. +HISTCONTROL=ignoreboth + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000 +HISTFILESIZE=2000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"