-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
54 lines (44 loc) · 1.26 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
50
51
52
53
# ~/.bashrc: executed by bash(1) for non-login shells.
# If running interactively, then:
if [ "$PS1" ]; then
# don't put duplicate lines in the history. See bash(1) for more options
# export HISTCONTROL=ignoredups
# enable color support of ls and also add handy aliases
export LS_OPTIONS='--color=auto -h'
eval `dircolors -b`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias la='ls $LS_OPTIONS -A'
alias l='ls $LS_OPTIONS -lA'
function jobcount {
c=`jobs | wc -l | tr -d " "`
if [ $c -gt 0 ]; then
echo " [$c]"
fi
}
# set a fancy prompt
if [ `whoami` = "root" ]
then
promptcolour='31'
else
promptcolour='34'
fi
export GIT_PROMPT_START='\[\e[${promptcolour};1m\]\h:\w`jobcount`\[\e[0m\]'
export GIT_PROMPT_END=' \[\e[${promptcolour};1m\]\$ \[\e[0m\]'
. ~/.home/gitprompt.sh
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
export EDITOR=/usr/bin/vi
export VISUAL=/usr/bin/vi
# Source local definitions
if [ -f ~/.bashrc.local ]; then
. ~/.bashrc.local
fi
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi