Add .bashrc

This commit is contained in:
fanyx 2021-05-18 13:42:48 +02:00
parent 29c88de823
commit 336b377c39
1 changed files with 32 additions and 0 deletions

32
.bashrc Normal file
View File

@ -0,0 +1,32 @@
# 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
#################################
# 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)"