-export EDITOR="vim"
-export PATH="/home/max/.local/bin:${PATH}"
-export TMPDIR="/home/max/.local/tmp"
-
-if [ -n "$BASH_VERSION" ]; then
- # include .bashrc if it exists
- if [ -f "$HOME/.bashrc" ]; then
- . "$HOME/.bashrc"
- fi
-fi
-
-if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
-fi
-
-export PATH="$HOME/.cargo/bin:$PATH"
-
-if test -z "${XDG_RUNTIME_DIR}"; then
- export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
- if ! test -d "${XDG_RUNTIME_DIR}"; then
- mkdir "${XDG_RUNTIME_DIR}"
- chmod 0700 "${XDG_RUNTIME_DIR}"
- fi
-fi
-
-export QT_QPA_PLATFORM=wayland-egl
-
-if [ -f ~/.config/sway/config.base ]; then
- cat ~/.config/sway/config.base ~/.config/sway/config.${HOSTNAME} > ~/.config/sway/config
+if [ -r ~/.profile ]; then
+ . ~/.profile;
fi
-if [ -f ~/.Xresources ]; then
- cat ~/.Xresources > ~/.Xdefaults
- if [ -f ~/.Xresources.$HOSTNAME ]; then
- cat ~/.Xresources.$HOSTNAME >> ~/.Xdefaults
- fi
-fi
-
-if [ -f ~/.config/termite/config.base ]; then
- cat ~/.config/termite/config.base ~/.config/termite/config.${HOSTNAME} > \
- ~/.config/termite/config
-fi
-
-
-if [ $HOSTNAME = "magnesium" ]; then
- export XKB_DEFAULT_LAYOUT=us
- export XKB_DEFAULT_VARIANT=colemak
- export XKB_DEFAULT_OPTIONS=ctrl:nocaps
-fi
-
-if [ $HOSTNAME = "platinum" ]; then
- export XKB_DEFAULT_LAYOUT=gb
- export XKB_DEFAULT_VARIANT=colemak
- export XKB_DEFAULT_OPTIONS=ctrl:nocaps
-fi
+case "$-" in *i*)
+ if [ -r ~/.bashrc ]; then
+ . ~/.bashrc
+ fi
+ ;;
+esac
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
-# If not running interactively, don't do anything
-case $- in
- *i*) ;;
- *) return;;
-esac
-
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
-HISTFILESIZE=2000
+HISTFILESIZE=20000
# 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)
-if [ -x /usr/bin/lesspipe ]; then
- export LESSOPEN="|lesspipe %s"
-elif [ -x /usr/bin/lesspipe.sh ]; then
- export LESSOPEN="|lesspipe %s"
-fi
-
-# set variable identifying the chroot you work in (used in the prompt below)
-if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
- debian_chroot=$(cat /etc/debian_chroot)
-fi
-
-
-# colored GCC warnings and errors
-export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
-
-
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
-eval `dircolors ~/.dir_colors`
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
export GPG_TTY=($tty)
gpg-connect-agent updatestartuptty /bye > /dev/null
+
+export EDITOR="vim"
+export TMPDIR="/home/max/.local/tmp"
+eval `dircolors ~/.dir_colors`
--- /dev/null
+export PATH="${HOME}/.local/bin:${HOME}/.cargo/bin:${PATH}"
+
+# Make XDG_RUNTIME_DIR, required for some sessions
+if test -z "${XDG_RUNTIME_DIR}"; then
+ export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
+ if ! test -d "${XDG_RUNTIME_DIR}"; then
+ mkdir "${XDG_RUNTIME_DIR}"
+ chmod 0700 "${XDG_RUNTIME_DIR}"
+ fi
+fi
+
+export QT_QPA_PLATFORM=wayland-egl
+
+if [ -f ~/.config/sway/config.base ]; then
+ cat ~/.config/sway/config.base ~/.config/sway/config.${HOSTNAME} > ~/.config/sway/config
+fi
+
+if [ -f ~/.Xresources ]; then
+ cat ~/.Xresources > ~/.Xdefaults
+ if [ -f ~/.Xresources.$HOSTNAME ]; then
+ cat ~/.Xresources.$HOSTNAME >> ~/.Xdefaults
+ fi
+fi
+
+if [ -f ~/.config/termite/config.base ]; then
+ cat ~/.config/termite/config.base ~/.config/termite/config.${HOSTNAME} > \
+ ~/.config/termite/config
+fi
+
+
+if [ $HOSTNAME = "magnesium" ]; then
+ export XKB_DEFAULT_LAYOUT=us
+ export XKB_DEFAULT_VARIANT=colemak
+ export XKB_DEFAULT_OPTIONS=ctrl:nocaps
+fi
+
+if [ $HOSTNAME = "platinum" ]; then
+ export XKB_DEFAULT_LAYOUT=gb
+ export XKB_DEFAULT_VARIANT=colemak
+ export XKB_DEFAULT_OPTIONS=ctrl:nocaps
+fi
+
+# make less more friendly for non-text input files, see lesspipe(1)
+if [ -x /usr/bin/lesspipe ]; then
+ export LESSOPEN="|lesspipe %s"
+elif [ -x /usr/bin/lesspipe.sh ]; then
+ export LESSOPEN="|lesspipe %s"
+fi
+
+# colored GCC warnings and errors
+export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
+