blob: dded7809acdd2094b7cad79dc6cb1a599a3ec4c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#!/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 :
|