-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
88 lines (70 loc) · 2.05 KB
/
.bashrc
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
source $HOME/.profile
if [[ -f /etc/bash_completion ]]; then
. /etc/bash_completion
fi
# [ -f /etc/bash_completion ] && . /etc/bash_completion
# [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
# [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
#xhost +local:root > /dev/null 2>&1
#if [[ -z "$DISPLAY" -a $XDG_VTNR -eq 1 ]]; then
# ssh-agent startx
#fi
complete -cf sudo
shopt -s cdspell
shopt -s checkwinsize
shopt -s cmdhist
shopt -s dotglob
shopt -s expand_aliases
shopt -s extglob
shopt -s histappend
shopt -s hostcomplete
export HISTSIZE=10000
export HISTFILESIZE=${HISTSIZE}
export HISTCONTROL=ignoreboth
export JAVA_FONTS=/usr/share/fonts/TTF
export EDITOR=/usr/bin/vim
#export TERMINAL=/usr/bin/urxvtc
#export BROWSER=/usr/bin/xdg-open
export BROWSER=
ESC=$'['
END_ESC=m
NOPRINT='\['
END_NOPRINT='\]'
WRAP="$NOPRINT$ESC"
END_WRAP="$END_ESC$END_NOPRINT"
RESET="${WRAP}0${END_WRAP}"
RESET_BG="${WRAP}49${END_WRAP}"
NORMAL="${WRAP}21${END_WRAP}"
BOLD="${WRAP}1${END_WRAP}"
# configuration is managed through git with an alias to set the working directory
export CFGDIR=$HOME/.cfg
alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME"
if [[ -d ~/.bash.d ]]; then
for i in ~/.bash.d/*; do
# FIXME: this is dumb, just match [0-9][0-9]* ?
if [[ ${i: -3} == ".md" ]]; then
continue
elif [[ ${i: -10} == ".gitignore" ]]; then
continue
elif [[ ${i: -6} == "bashrc" ]]; then
continue
elif [[ ${i: -4} == ".git" ]]; then
continue
elif [[ ${i: -5} == ".idea" ]]; then
continue
fi
[[ -f "${i}" ]] && source "${i}"
done
fi
# BEGIN_KITTY_SHELL_INTEGRATION
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then
export KITTY_SHELL_INTEGRATION="enabled"
source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"
fi
# END_KITTY_SHELL_INTEGRATION
# vim: set ts=2 sw=2: