-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc.txt
41 lines (31 loc) · 887 Bytes
/
zshrc.txt
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
# Path to your oh-my-zsh installation.
export ZSH="/Users/e4stw00d/.oh-my-zsh"
ZSH_THEME="eastwood"
plugins=(git colorize cp go brew osx node npm ruby)
# User configuration
export GOPATH=~/go
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:"/usr/local/sbin"
source $ZSH/oh-my-zsh.sh
curdate() {
printf "%s %s" $(date +%d.%m.%Y) $(date +%H:%M)
}
githubpaste() {
if [ -d .git ]; then
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -am "$(curdate)"
git push origin master
fi;
fi;
}
export SERVER="46.101.151.142"
alias c="clear"
alias s="ssh root@$SERVER"
alias p="cd ~/Projects"
alias g="githubpaste; (cd ..; githubpaste)"
alias l="ls -lh"
alias ll="ls -lah"
alias drd="diskutil unmountDisk disk2"
alias workflow="go version&&ruby -v&&rails -v&&vim --version | awk 'NR==1; END{print}'"