From 5a7db2f34aa6a6787d98a001b6d28be97f36abf4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Jun 2021 12:56:30 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- bash/bashrc | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 bash/bashrc (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc new file mode 100644 index 0000000..a500a9d --- /dev/null +++ b/bash/bashrc @@ -0,0 +1,64 @@ +# -*- shell-script -*- + +# If not running interactively, don't do anything +if [[ $- != *i* ]]; then + return +fi + + +# Don't put duplicate lines in the history. See bash(1) for more options +# ... or force ignoredups and ignorespace +HISTCONTROL=ignoredups:ignorespace +# 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 + + +set -o physical +alias cd='cd -L' + + + +if test -r ~/.config/bash/aliases; then + . ~/.config/bash/aliases +fi + +if test -r /etc/bash_opt; then + . /etc/bash_opt +fi + +~/.config/bash/bashrc_palette +~/.config/bash/bashrc_prompt + +for __script in ~/.config/bash/bashrc.d/*; do + if test -r "${__script}"; then + . "${__script}" + fi +done +unset __script + +if test -r ~/.config/bash/"bashrc-$(hostname)"; then + . ~/.config/bash/"bashrc-$(hostname)" +fi + +if test -r ~/work/.config/bash/bashrc; then + . ~/work/.config/bash/bashrc +fi + + + +if test "$TERM" = linux; then + printf '\e[?8c' + if test -n "$PALETTE"; then + printf "$PALETTE"'\e[H\e[2J' + fi + palette-set `blackNcsColours` +elif test "$TERM" = xterm; then + export TERM=xterm-256color +fi +featherweight-off -- cgit v1.2.3-70-g09d2