-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bashrc
55 lines (44 loc) · 1.09 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
PATH=$HOME/Bin:$PATH
export BREW_PREFIX=`brew --prefix`
export EDITOR=emacsclient
export VISUAL=emacsclient
export PYTHONSTARTUP=$HOME/.pythonrc.py
export LANG=en_US.UTF-8
## LifeLines (genealogy software)
export LLPROGRAMS=$BREW_PREFIX/share/lifelines
export LLREPORTS=$HOME/LifeLines/output
export LLARCHIVE=$HOME/LifeLines/archive
export LLDATABASES=$HOME/LifeLines
###
### GIT Stuff
###
function g() {
git ${*:-status}
}
function ga() {
git add ${*:-.}
}
alias gd='git di'
alias gdc='git dc'
alias gci='git commit -v'
alias gl='git l'
alias gla='git la'
alias gr='git r'
alias gra='git ra'
alias gp='git push'
# Keeping track of my commands
shopt -s histappend
export HISTCONTROL=ignoreboth
export HISTIGNORE="ls:cd:history:bg:fg:cd:pwd"
export HISTSIZE=100000
export HISTFILESIZE=10000000
export PROMPT_COMMAND="history -a; history -n"
alias frm='mail -H'
function batt() {
pmset -g batt | \
awk '/InternalBattery/{print $3 $2 " " $4 }' | \
sed -e 's/(no//' -e 's/discharging;/-/' -e 's/charging;/+/' -e 's/;/ /g'
}
function _log() {
echo `date +%FT%T%z` ' -- ' $*
}