-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc.txt
More file actions
89 lines (71 loc) · 1.94 KB
/
Copy pathbashrc.txt
File metadata and controls
89 lines (71 loc) · 1.94 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
#!/bin/bash
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
export HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
color_prompt=yes
else
color_prompt=
fi
fi
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
unset color_prompt force_color_prompt
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
if [ -x /usr/bin/dircolors ]; then
eval "`dircolors -b`"
fi
alias ls='ls -Gh'
alias ll='ls -l'
alias la='ll -a'
alias grep='grep --color=always'
alias fgrep='fgrep --color=always'
alias egrep='egrep --color=always'
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
#30 Black 31 Red 32 Green 33 Orange 34 Blue 35 Magenta 36 Cyan 37 White
PS1='\
\[\033[34m\]\u\
\[\033[00m\]@\
\[\033[35m\]\h\
\[\033[00m\]:\
\[\033[31m\]\w\
\[\033[00m\]\$\
'
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
export LANG
export LC_COLLATE
export LC_CTYPE
export LC_MESSAGES
export LC_MONETARY
export LC_NUMERIC
export LC_TIME
export LC_ALL
if [ -f ~/.rvm/scripts/rvm ];then
[[ -s ~/.rvm/scripts/rvm ]] && source ~/.rvm/scripts/rvm
fi