-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
69 lines (64 loc) · 1.75 KB
/
bashrc
File metadata and controls
69 lines (64 loc) · 1.75 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
__os_specific() {
case "$OSTYPE" in
cygwin)
export SHELL='/bin/bash'
#export TZ='America/Los_Angeles'
export LESSHISTFILE='-'
alias ls='ls -F --color'
alias grep='grep --color'
__set_locale
;;
linux*)
#export TZ='America/Los_Angeles'
alias ls='ls -F --color'
alias grep='grep --color'
__set_locale
;;
interix*)
export HOME='/home/'`whoami`
#export TZ='America/Los_Angeles'
alias ls='ls -F'
;;
darwin*)
alias ls='ls -F'
alias grep='grep --color'
export TERMINFO=/opt/local/share/terminfo
__set_locale
__set_bsd_clicolor
;;
freebsd*)
export XLIB_SKIP_ARGB_VISUALS=1
alias ls='ls -F'
alias grep='grep --color'
__set_bsd_clicolor
;;
esac
}
__set_bsd_clicolor() {
export CLICOLOR='ya'
export LSCOLORS="ExGxFxdxCxDxDxhbadExEx"
}
__set_locale() {
export LANG='en_US.UTF-8'
}
__tacky_prompt() {
magenta='\[\e[95m\]'
blue='\[\e[94m\]'
reset='\[\e[0m\]'
username='\u'
separator='@'
hostname='\h'
curdir='\w'
xterm_title_begin='\[\e]2;'
xterm_title_end='\a\]'
xterm_title=$xterm_title_begin$username$separator$hostname':'$curdir$xterm_title_end
PS1=$reset$xterm_title'['$magenta$username$separator$hostname$reset' '$blue$curdir$reset']\$ '
}
export SYSSCREENRC=/dev/null
export IGNOREEOF=10
unset HISTFILE
__os_specific
__tacky_prompt
shopt -s globstar
bind 'set show-all-if-ambiguous on' 2>/dev/null
[[ -f "$HOME/.local/local.bash" ]] && . "$HOME/.local/local.bash"