-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bash_profile
More file actions
38 lines (28 loc) · 895 Bytes
/
dot_bash_profile
File metadata and controls
38 lines (28 loc) · 895 Bytes
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
### Commands and shortcuts
alias ipyserv='ipython notebook'
alias ls="ls -GF"
alias la='ls -altrhG'
alias findpy='find . | grep .py$'
alias emax='emacs -nw'
alias findR='find . | grep .R$'
alias sudoo="sudo /bin/bash -l";
### For Pushing SSH keys
sshcopykeys() {
cat ~/.ssh/id_rsa.pub | ssh $1 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
}
alias ssh-copy-id=sshcopykeys
### Git
alias gitstat='git status -uno'
alias gitstath='git status | grep -v "../"'
### Terminal
if [ $USER = "root" ]; then
PS_COLOR="31m";
else
PS_COLOR="32m";
#export TMPDIR="$HOME/.tmp";
fi
export PS1="\n[01;$PS_COLOR\u@\h[0m : \t : [01;34m\w[0m\n\$ "
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Mongod nice startup command
alias mongodb='sudo mongod --config /opt/local/etc/mongodb.conf --fork && sleep 1 && tail -20 /opt/local/var/log/mongod.log'