dotfiles/bash/bashrc
2020-09-09 14:32:54 +02:00

25 lines
612 B
Bash
Executable file

#!/usr/bin/env bash
shopt -s autocd
shopt -s checkwinsize
export HISTFILESIZE=10000
export HISTCONTROL=ignoreboth
#show colored man-pages
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;36m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
alias reload=". ~/.bashrc"
# Bind PageUp and PageDown to history search
if [ -n "$BASH_VERSION" -a -n "$PS1" ]; then
bind '"\e[5~": history-search-backward'
bind '"\e[6~": history-search-forward'
fi
source ~/.profile.d/load