-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_profile
23 lines (19 loc) · 887 Bytes
/
_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
bind 'set completion-ignore-case on'
# allow ctrl-s for forward command search (compared to ctrl-r)
stty stop undef
shopt -s histappend
# /opt/local is MacPorts
export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin:/opt/local/bin:/opt/local/sbin:$PATH:~/Documents/arm/bin
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
type tac 1>/dev/null 2>&1 || alias tac='tail -r'
# allow this to be called thrice (e.g. you clobbered the clipboard and wish to
# copy the last command (that isn't invoking 'cpl' itself) again
alias cpl='history 4 | tac | grep -vPm 1 "^[ 0-9]*\bcpl\b" | sed -E "s/^[ ]+[0-9]+[ ]+//" | pbcopy'
alias pwdc='pwd | tr -d "\n" | pbcopy'
alias cdc='cd `pbpaste`'