-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
35 lines (28 loc) · 944 Bytes
/
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
# Shell Commands
alias grep="grep --color"
alias xx="exit"
alias mdkir="mkdir"
# Git
alias gs="git status"
alias gl="git log --oneline --color -n"
alias gar="git add -A; git ls-files --deleted -z | xargs -0 git rm "
alias gr="git ls-files --deleted -z | xargs -0 git rm "
# Development
alias be="bundle exec"
# System
alias flushdnscache="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder"
# Application
alias ops="open -a Adobe\ Photoshop\ CS5"
# Papertrail
alias pt="papertrail"
#alias remove_qmarks='find . | grep '?' | perl -pe "s/^((.*)[?].*)$/mv \1 \2/" | sh'
#alias trim_whitesspace='
# for FILE in `exec git diff-index --check --cached HEAD -- | sed '/^[+-]/d' | cut -d ':' -f 1 | uniq` ; do
# # Fix them!
# echo $FILE
# (sed -i 's/[[:space:]]*$//' "$FILE" > /dev/null 2>&1 || sed -i "" 's/[[:space:]]*$//' "$FILE")
#
# done
#'
# node_modules/ in local directory
alias npm-exec='PATH=$(npm bin):$PATH'