-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
98 lines (72 loc) · 2.15 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
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
90
91
92
93
94
95
96
97
98
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
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)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
export LESS='-erX'
export EDITOR=vim
export PGUSER=www-data
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
export HISTCONTROL=ignoredups
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias l='ls $LS_OPTIONS -Fahl'
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# grep aliases
alias grepsvn='grep -rIl --exclude-dir=.svn'
alias gitsvn='git svn'
if [ `id -u` -eq 0 ]; then
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/bin/X11:/usr/games:~/local/lib/python:~/local/lib/python/lfm"
fi
PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/:"$PATH"
# set PATH so it includes user's private bin if it exists
if [ -d ~/local/bin ] ; then
PATH=~/local/bin:"$PATH"
fi
if [ -d ~/local/lib ] ; then
PATH=~/local/lib:"$PATH"
fi
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
if [ -d ~/node ] ; then
PATH=~/node/out/Release:"${PATH}"
fi
if [ -d ~/npm ] ; then
PATH=~/node/out/bin:"${PATH}"
fi
if [ -d ~/jslint ] ; then
PATH=~/node/out/bin:"${PATH}"
fi
if [ -d ~/local/lib/python ] ; then
PATH=~/local/lib/python:"$PATH"
fi
if [ -d ~/local/lib/python/lfm ] ; then
PATH=~/local/lib/python/lfm:"$PATH"
fi
if [ -d ~/.gem/ruby/1.8/bin ] ; then
PATH=~/.gem/ruby/1.8/bin:"$PATH"
fi
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
alias homegit='git --git-dir=$HOME/.homegit --work-tree=$HOME'
alias apache2ctl='/usr/sbin/apache2ctl'
alias apa='sudo apache2ctl graceful'
alias chb='buildout/bin/buildout -c buildout_ltjeg.cfg; apa'