-
Notifications
You must be signed in to change notification settings - Fork 5
/
bashrc
46 lines (36 loc) · 1.36 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
#
# ~/.bashrc
#
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
# no duplicate entries
export HISTCONTROL=ignoreboth:erasedups
# append history file
shopt -s histappend
# update histfile after every command
export PROMPT_COMMAND="history -a"
# if [ -f /usr/bin/virtualenvwrapper.sh ]
# then
# export WORKON_HOME=~/.virtualenvs
# source /usr/bin/virtualenvwrapper.sh
# fi
#
if [ -d $HOME/.local/bin/ ]; then PATH=$PATH:$HOME/.local/bin/ ;fi
if [ -f /etc/profile.d/autojump.bash ]; then source /etc/profile.d/autojump.bash ;fi
if [ -f /usr/share/autojump/autojump.bash ]; then source /usr/share/autojump/autojump.bash ;fi
if [ -f ~/.shell_promptline.sh ]; then source ~/.shell_promptline.sh ;fi
if [ -f $HOME/.autojump/bin/autojump.bash ]; then source $HOME/.autojump/bin/autojump.bash ;fi
if [ $USER = "root" ]; then
if [ -f /root/.shell_promptline_root.sh ]; then source /root/.shell_promptline_root.sh ;fi
fi
if [ -f $HOME/.fzf.bash ]; then source $HOME/.fzf.bash ;fi
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
[ -s "$HOME/.jabba/jabba.sh" ] && source "$HOME/.jabba/jabba.sh"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash