-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbashrc-minimal
64 lines (51 loc) · 1.58 KB
/
bashrc-minimal
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
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything:
[ -z "$PS1" ] && return
shopt -s checkwinsize
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ll='ls --format=vertical --color=auto -lah'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
export PS1='\[\033[01;33m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/mysql/bin:~/public_html/bin
umask 022
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ll='ls $LS_OPTIONS -lah'
alias ls='ls --color=auto'
alias svn='/home/wpdev/public_html/bin/svn'
# My Settings
alias v='vim'
alias g='git'
export WPCOM_USERNAME=scjr
alias run-test='pushd bin/tests/isolated ; phpunit suites/Experiments ; popd'
## Bash History
export HISTSIZE=
export HISTFILESIZE==
export HISTTIMEFORMAT="[%F %T] "
export HISTFILE=~/.bash_eternal_history
export PROMPT_COMMAND='history -a ; $PROMPT_COMMAND'
function clean-bad-patch () {
find . '(' \
-name \*-baseline -o \
-name \*-merge -o \
-name \*-original -o \
-name \*.orig -o \
-name \*.rej \
')' -delete
}
# Fix tmux SSH agent forwarding
if [[ "$TERM" = "screen" && -v $TMUX ]]; then
eval $(tmux showenv -s SSH_AUTH_SOCK)
fi
alias fixssh="eval $(tmux showenv -s SSH_AUTH_SOCK)"