-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases
54 lines (40 loc) · 1.34 KB
/
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
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
alias mv='mv -i'
alias rm='rm -i'
alias cp='cp -i'
alias cd..='cd ..'
alias tf='tail -F -n 200'
alias h=history
alias ls='ls -G'
alias lrt='ls -lart'
alias lt='ls -lat'
alias ll='ls -lh'
alias la='ls -Al'
alias l='ls -CF'
alias fname='find . -name'
alias brake='bundle exec rake'
alias bopen='EDITOR=mvim bundle open'
alias bcuke='bundle exec cucumber'
alias brspec='bundle exec rspec'
alias be='bundle exec'
alias gitpull='find . -type d -name .git | xargs -n 1 dirname | while read line; do cd $line && git pull && cd .. ; done'
alias fs='foreman start'
alias spider='wget -r -nd --delete-after --level=5'
alias netlisten='lsof -i -P | grep LISTEN'
alias zke='zeus rake'
alias zrspec='zeus rspec'
alias popular="tail -n 4000 ~/.bash_history | sort | tail -n 2000 | cut -d ';' -f 2 | sort | uniq -c | sort -n"
alias beanshell='java jline.ConsoleRunner bsh.Interpreter'
alias gs='git status'
alias gd='git diff'
alias gds='git diff --staged'
alias gc='git checkout'
alias ga='git add'
alias gh='git history'
alias gg='git grep'
alias gb='git branch'
alias gl='git log'
alias gdn='git diff --name-only'
alias polpop='git stash && git pull && git stash pop'
alias hostip="echo $(ifconfig | grep -E '([0-9]{1,3}\.){3}[0-9]{1,3}' | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n2)"
alias mcr='brew services restart memcached'