-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsshrc
67 lines (53 loc) · 1.15 KB
/
sshrc
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
65
66
# Unix
alias ll="ls -alh"
alias ln="ln -v"
alias mkdir="mkdir -p"
# Bundler
alias b="bundle"
# Rails
alias migrate="rake db:migrate db:rollback && rake db:migrate"
alias s="rspec"
# Pretty print the path
alias path='echo $PATH | tr -s ":" "\n"'
# unix
alias rmrf="rm -rf"
alias j="jobs"
alias c="clear"
# bdt
alias cdp="cd /rails/prism"
alias cdl="cd /var/log/prism/"
# git
alias gs="git status"
alias gd="git diff"
alias gb="git branch"
alias gco='git checkout $(git branch | cut -c 3- | pick)'
alias gf="git fetch"
alias gc="git commit -v"
alias ga="git add"
alias gaa="git add ."
alias gac="git add . && git commit -v"
alias gpl="git pull"
alias gl="git log"
alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
# bundler
alias bi="bundle install"
alias bu="bundle update"
# sourcetree
alias st="stree"
# the silver searcher
alias agl="ag --pager \"less -R\""
# pick
alias p="pick"
# editor
export EDITOR=vim
alias e=$EDITOR
# use 'g' instead of 'git'
g () {
if [[ $# -gt 0 ]]
then
git "$@"
else
git status
fi
}
source ~/.profile