-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
66 lines (52 loc) · 1.69 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
#!/usr/bin/env bash
# shellcheck source=/dev/null
. "${HOME}/.bashrc.functions"
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
# shellcheck source=/dev/null
. /usr/share/bash-completion/bash_completion || true
elif [[ -f /etc/bash_completion ]]; then
# shellcheck source=/dev/null
. /etc/bash_completion || true
fi
else
return
fi
[[ "${PATH}" == *"${HOME}/.local/bin"* ]] || export PATH=$PATH:$HOME/.local/bin
export HISTTIMEFORMAT="%Y-%m-%d %T "
# Path to the bash it configuration
export BASH_IT="$HOME/.bash_it"
# Lock and Load a custom theme file
# location /.bash_it/themes/
export BASH_IT_THEME='boxes-multiline'
# Don't check mail when opening terminal.
unset MAILCHECK
# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
export SCM_GIT_SHOW_DETAILS=true
# Use dir colors
if [[ -e "$HOME/.dir_colors/dircolors.nord" ]]; then
eval "$(dircolors "$HOME/.dir_colors/dircolors.nord")" || true
fi
# Used to make machine specific changes (not versioned controlled)
# shellcheck source=/dev/null
if [[ -e "$HOME/.bashrc.local" ]]; then
. "$HOME/.bashrc.local" || true
fi
# shellcheck source=/dev/null
if [[ -e "$HOME/.bash_aliases" ]]; then
. "$HOME/.bash_aliases" || true
fi
# Load Bash It
# shellcheck source=/dev/null
if [[ -n "$BASH_IT" && -e "$BASH_IT/bash_it.sh" ]]; then
. "$BASH_IT/bash_it.sh" || true
fi
__append_prompt_command tmux_git_window_name
if [[ $- != *i* || -n "${SSH_CONNECTION}" ]]; then
return
fi
if command -v tmux &> /dev/null && [[ -z "${TMUX}" && -z "${SUDO_USER}" ]]; then
exec tmux
fi