-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
47 lines (35 loc) · 1.16 KB
/
.bash_profile
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
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
shopt -s checkhash
shopt -s cmdhist
shopt -s histappend
shopt -s histreedit
shopt -s dotglob
shopt -s failglob
shopt -s no_empty_cmd_completion
PATH=/usr/local/bin:/usr/local/sbin:$PATH
PATH=$PATH:$HOME/bin:/usr/sbin:/sbin
PATH=$PATH:~/.venv/bin:$PATH
# dart lives in ~/.pub-cache?
PATH=$PATH:$HOME/.pub-cache/bin
export PATH
unset USERNAME
# from http://serverfault.com/questions/2817/hidden-features-of-linux/15179#15179
# Make history ignore dups, ls, and exit
export HISTIGNORE="&:ls:[bf]g:exit"
# Save 100000 history comamnds
export HISTSIZE=10000
# Make each terminal use a separate history file
HISTDIR=${HOME}/.history
SHELLID=$(tty | sed 's!/!.!g')
HISTFILE=${HISTDIR}/history${SHELLID}
touch ${HISTFILE}
# load last histfile as current history
history -r $(/bin/ls ${HISTDIR}/history${SHELLID} | /usr/bin/tail -n 1)
[ -x ~/autostart ] && exec ~/autostart
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
source /Users/john/.config/broot/launcher/bash/br