-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_bashrc
More file actions
117 lines (90 loc) · 2.67 KB
/
dot_bashrc
File metadata and controls
117 lines (90 loc) · 2.67 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# .bashrc
# ENV VARS
# bind "\C-w": // commented to avor at i3 startup
# bind "\C-a": // commented to avor at i3 startup
# bind "\C-e": // commented to avor at i3 startup
set -o vi
export EDITOR=vim
export LANG=en_US.utf8
export LESS='-R -X -F --quit-if-one-screen'
export LESSCHARSET=utf-8
export PAGER=less
# Local vars$
export ME=$(uname -n)
export OS=$(uname -s)
export USER=$(whoami)
# HISTORY config
# export TERM=screen-256color
export HISTSIZE=32768
export HISTFILESIZE=32768
export HISTCONTROL=ignoreboth
export HISTTIMEFORMAT="%d/%m/%y %T "
# I3 only
# export TERMINAL="urxvt256c"
# GOPATH
export GOPATH=$HOME/go-projects
export PATH=$HOME/bin:$HOME/go/bin:$PATH
# Source global definitions
if [ -f ~/.bashrc_custom ];then
. ~/.bashrc_custom
fi
if [ -f ~/.bash_aliases ];then
. ~/.bash_aliases
fi
if [ -f ~/.bash_aliases_custom ];then
. ~/.bash_aliases_custom
fi
if [ -f ~/.bash_functions ];then
. ~/.bash_functions
fi
if [ -f ~/.bash_colors ];then
. ~/.bash_colors
fi
if [ -f ~/.git-prompt.sh ];then
. ~/.git-prompt.sh
fi
if [ -f ~/.gvm/scripts/gvm ];then
. ~/.gvm/scripts/gvm
fi
if [ -f ~/.cargo/env ];then
. ~/.cargo/env
fi
. "$HOME/.cargo/env"
if [ $OS == "FreeBSD" ] ; then
CUSTOM_COLOR=${B_RED}
else
CUSTOM_COLOR=${B_BLUE}
fi
# Build PS1
PS1="${B_BLUE}\w${END_C}\$(__git_ps1 \" (%s)\")${CUSTOM_COLOR} #${END_C} "
# PS1="${CUSTOM_COLOR}\u${END_C}${B_WHITE}@${ENC_C}${CUSTOM_COLOR}\h${END_C}:${B_WHITE}\w${END_C}\$(__git_ps1 \" (%s)\")${CUSTOM_COLOR} #${END_C} "
# Venv for vim
MYVENV3="${HOME}/venv/bin/activate"
[ -f $MYVENV3 ] && . $MYVENV3
# MAN COLORS - LESS
export LESS_TERMCAP_mb=$'\E[1;31m' # begin bold
export LESS_TERMCAP_md=$'\E[1;36m' # begin blink
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
# Autoenv
AUTOENV_FILE="$HOME/.autoenv/activate.sh"
[ -f $AUTOENV_FILE ] && source $AUTOENV_FILE
# PYENV
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
[[ -s "/home/fchardin/.gvm/scripts/gvm" ]] && source "/home/fchardin/.gvm/scripts/gvm"
. "$HOME/.cargo/env"
HISTFILESIZE=200
. "$HOME/.atuin/bin/env"
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
eval "$(atuin init bash)"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PATH="$HOME/.local/bin:$PATH"