aboutsummaryrefslogtreecommitdiffstats
path: root/bash/bashrc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 12:56:30 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 12:56:30 +0200
commit5a7db2f34aa6a6787d98a001b6d28be97f36abf4 (patch)
tree52db199005cc5daee35b5c0e9b3d28b534449e1c /bash/bashrc
downloaddotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.gz
dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.bz2
dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc64
1 files changed, 64 insertions, 0 deletions
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