#!/bin/bash # shellcheck disable=SC1090,SC1091 # If not running interactively, don't do anything [ -z "$PS1" ] && return export HISTCONTROL=ignoreboth # 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 "$(lesspipe)" # Enable color support of ls and also add handy aliases if [ "$TERM" != "dumb" ]; then eval "$(dircolors -b)" export LS_OPTIONS='--color=auto' fi source /etc/bashrc # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi if [ -f ~/.bash_completion.sh ]; then . ~/.bash_completion.sh fi # Alias definitions. if [ -f ~/.bash/aliases.sh ]; then . ~/.bash/aliases.sh fi ###-tns-completion-start-### if [ -f /home/kinote/.tnsrc ]; then . /home/kinote/.tnsrc fi ###-tns-completion-end-### if [ -x "$HOME/bin/e" ]; then export EDITOR="$HOME/bin/e" elif [ -x /usr/bin/emacsclient ]; then export EDITOR='emacsclient -c -a "" -nw' else export EDITOR="vim" fi GPG_TTY=$(tty) export GPG_TTY # Unlimited history size export HISTSIZE= export HISTFILESIZE= if [ -f ~/.bash/prompt.sh ] ; then . ~/.bash/prompt.sh fi if [ -f ~/.bash_local ] ; then . ~/.bash_local fi if command -v direnv > /dev/null 2>&1; then eval "$(direnv hook bash)" fi # vim: set ts=4 sts=4 sw=4 expandtab :