-
Notifications
You must be signed in to change notification settings - Fork 5
/
.bash_aliases
44 lines (36 loc) · 1002 Bytes
/
.bash_aliases
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
if [[ "$OSTYPE" =~ "linux" ]]; then
alias ls='ls --color=auto -h'
else
alias ls='ls -Gh'
fi
alias ll='ls -l'
alias la='ls -la'
alias lt='ls -lt' # order by last modified date
alias ..='cd ..'
alias path='echo $PATH | tr ":" "\n"'
# programs
alias egrep="grep -Ern --color=auto --exclude-dir=\*.{git,bundle} --exclude-dir=node_modules --exclude-dir=log --exclude-dir='./lib/assets/dist' --exclude-dir='./lib/assets/public'"
alias t="todo -f '+children'"
alias c='clear'
alias screen='screen -U'
alias hist='history | grep $1'
# git
alias gs='git status'
alias gf='git fetch'
alias ga='git add'
alias gc='git commit'
alias gl='git log'
alias gd='git diff'
alias gdc='git diff --cached'
alias grc='git rebase --continue'
alias gra='git rebase --abort'
alias gb='git branch'
alias tl="tail -f log/development.log"
alias rfind='find . -name *.rb | xargs grep -n'
alias z='zeus'
# bundler
alias bx='bundle exec'
alias bi="bundle install"
alias bu="bundle update"
# foreman
alias fr='foreman run'