-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
58 lines (48 loc) · 1.2 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
# SilverRainZ's .bashrc
# ~/.bashrc
# date: 2015-7-21
export LA_BASHRC_LOADED=$(($LA_BASHRC_LOADED+1))
if [[ -f /etc/os-release ]]; then
source /etc/os-release
OSID=$ID
fi
case "$TERM" in
xterm)
export TERM=xterm-256color
;;
screen)
export TERM=screen-256color
;;
esac
source $HOME/.alias
# tilix
if [[ $TILIX_ID ]]; then
# Fix tilix VTE configuration Issue
# Ref: https://github.com/gnunn1/tilix/wiki/VTE-Configuration-Issue
source /etc/profile.d/vte.sh
fi
# TTY
if [ "$TERM" = "linux" ]; then
source .tty
fi
# iterm2
if [[ "$ITERM_SESSION_ID" ]]; then
source "${HOME}/.iterm2_shell_integration.zsh"
fi
# sphinxnotes-snippet, optional.
# https://sphinx.silverrainz.me/snippet/
if [[ -z "$SSH_CLIENT" ]] && command -v snippet &> /dev/null; then
eval "$(snippet integration --sh --sh-binding)"
fi
# autojump, :require:`bin:autojump`.
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
case $OSID in
arch)
source /etc/profile.d/autojump.sh;;
debian)
source /usr/share/autojump/autojump.zsh;;
esac
elif [[ "$OSTYPE" == "darwin"* ]]; then
source /usr/local/etc/profile.d/autojump.sh
fi
# vim: se fdm=marker: