-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.bashrc
49 lines (36 loc) · 1.94 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
# .bashrc
# Source global definitions
[ -f /etc/bashrc ] && source /etc/bashrc
# Load bash completions
. $HOME/.local/share/bash-completion/bash_completion
# Load Node Version Manager (NVM)
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
# Load Ruby Version Manager (RVM)
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Command aliases
source $HOME/.bash_aliases
export EDITOR=/usr/bin/vim
export VISUAL=/usr/bin/vim
[ -n "$PS1" ] && \
export PS1="\[\e[m\]\[\e[38;5;196m\]\A\[\e[m\] \[\e[38;5;151m\]\u\[\e[37m\]@\[\e[38;5;180m\]\H\[\e[37m\]:\[\e[38;5;39m\]\w\[\e[37m\]\\$\[\e[m\] "
[ -x /usr/bin/dircolors ] && [ -s ~/.dir_colors ] && eval "$(/usr/bin/dircolors ~/.dir_colors)"
# Shell history settings
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=50000 # big history
export HISTFILESIZE=50000 # big history
shopt -s histappend # append to history, don't overwrite it
# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a;history -c;history -r;$PROMPT_COMMAND"
# Set GPG TTY to current TTY if it's not already set
[ -z "$GPG_TTY" ] && export GPG_TTY=$(tty)
# Load Vultr rc file if it exists
[ -f $HOME/.vultrrc ] && . $HOME/.vultrrc
# Load PHP if it exists
[ ! -x php ] && [ -f /opt/remi/php74/enable ] && source /opt/remi/php74/enable
[ ! -x php ] && [ -f /opt/remi/php73/enable ] && source /opt/remi/php73/enable
[ ! -x php ] && [ -f /opt/remi/php72/enable ] && source /opt/remi/php72/enable
[ ! -x php ] && [ -f /opt/remi/php71/enable ] && source /opt/remi/php71/enable
[ ! -x php ] && [ -f /opt/remi/php70/enable ] && source /opt/remi/php70/enable
[ ! -x php ] && [ -f /opt/remi/php56/enable ] && source /opt/remi/php56/enable