-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases
87 lines (69 loc) · 2.02 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# ~/.bash_aliases
alias L=launcher
# LS
alias ls='ls -hFG' # add colors for filetype recognition
alias l='ls'
alias ll='ls -lFG'
alias la='ls -Al' # show hidden files
alias lx='ls -lXB' # sort by extension
alias lk='ls -lSr' # sort by size
alias lc='ls -lcr' # sort by change time
alias lu='ls -lur' # sort by access time
alias lr='ls -lR' # recursive ls
alias lt='ls -ltr' # sort by date
alias lm='ls -al | more' # pipe through 'more'
# Grep
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# User specific aliases and functions
alias more='less'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias mkdir='mkdir -p'
# Movement
alias home='cd ~'
alias ..='cd ..'
alias ...='cd ../..'
# History
alias h='history'
alias c='clear'
# ENV
alias rbash='source ~/.bash_profile'
alias path='echo -e ${PATH//:/\\n}'
alias cpath='echo -e ${CLASSPATH//:/\\n}'
alias ldpath='echo -e ${LD_LIBRARY_PATH//:/\\n}'
# Process Control
alias j='jobs -l'
# SSH
# X Forwarding seems to kill jboss
# alias ssh='ssh -X'
# Rails
alias ss='./script/server'
alias sc='./script/console'
alias a='autotest -rails'
# SVN
alias sup='svn up'
alias sst='svn st'
alias svnclear='find . -name .svn -print0 | xargs -0 rm -rf' # removes all .svn folders from directory recursively
alias svnaddall='svn status | grep "^\?" | awk "{print \$2}" | xargs svn add' # adds all unadded files
# GIT
alias g="git"
# Vim
alias vim='~/Applications/MacVim.app/Contents/MacOS/Vim'
alias nerd='vim -c NERDTree'
# Screen
alias screen='TERM=screen screen'
# Q Language
alias q="~/q/m32/q"
# Firefox
alias ff_dev="/Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P dev &"
# NNS
alias nns="echo entries | nc nns 1500"
# Network
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
alias flush="dscacheutil -flushcache" # Flush DNS cache
# Lua
alias love="/Applications/love.app/Contents/MacOS/love"