-
Notifications
You must be signed in to change notification settings - Fork 2
/
.alias
114 lines (114 loc) · 5.38 KB
/
.alias
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
alias ..2="cd ../.."
alias ..3="cd ../../.."
alias ..4="cd ../../../.."
alias ..5="cd ../../../../.."
alias ..="cd .."
alias bud="brew cleanup; brew update; brew upgrade; brew doctor"
alias c1chk="cls; cls; find ~/Pictures/ \( -name Capture -o -name Output -o -name Trash \) -type d -exec du --max-depth=0 -h {} \; | sort -r"
# alias c1del="cls; cls; find ~/Pictures/ -name Output -type d -exec rm -rf {}/* \;"
alias c2c="cvs2cl.pl --branches --gmt --hide-filenames --no-indent --prune --revisions --tagdates --tags; rm CHANGELOG.bak; cvs ci -m ''"
alias catmysql="cat ~/.ssh/l2l_config/mysql"
alias ccd="cls; cd"
alias cd..="cd .."
alias cdfitv="cd /Users/michael/Sites/fitv/wp-content"
alias cdfitvp="cdfitv; cd plugins"
alias cdfitvt="cdfitv; cd themes"
alias cdwp="cd /Users/michael/Sites/wp/wp-content"
alias cdwpp="cdwp; cd plugins"
alias cdwpt="cdwp; cd themes"
alias cls="clear"
alias cphp="find . -type f \( -name '*.php' -o -name '*.inc' \) -exec php -lf {} \;"
alias crdl="cdwp; rdl"
alias crfitvdl="cdfitv; rdl"
alias csslint="csslint --ignore=adjoining-classes,box-model,empty-rules"
alias cvsd="cvs diff > diff.txt; vi diff.txt +0; rm diff.txt"
alias cvsup="cvs up"
alias df="df -h"
alias diff="diff -bru -x .git -x .svn -x CVS"
alias du1="df; du > du.txt; vi du.txt; rm du.txt"
alias du="du --max-depth=1 -h | sort -r"
alias dus="\du --max-depth=0 -h"
alias epiphp="echo '<?php phpinfo(); ?>' >> pi.php"
alias ferrors="find . \( -name 'errors' -o -name 'error_log' \) -type f -exec vim {} \;"
alias flibaf="find . -name "aihrus" -type d"
alias git2cl="git log > changelog.txt"
alias gita="git add"
alias gitac="gitau; gitc"
alias gitacp="gitau; gitc; gitpom"
alias gitacpcs="gitcacs; gitpom"
alias gitau="git add -u"
alias gitb="git branch"
alias gitc="git commit"
alias gitca="git commit -a"
alias gitcacs="gitau; git commit -m 'Coding standard'"
alias gitco="git checkout"
alias gitcob="git checkout -b"
alias gitd="git diff --ignore-space-change HEAD > diff.txt; vi diff.txt +0; rm diff.txt"
alias gitdc="git diff CHANGELOG.md > diff.txt"
alias gitdca="git diff --ignore-space-change --cached > diff.txt; vi diff.txt +0; rm diff.txt"
alias gitdh="gitd"
alias gitfa="git fetch --all"
alias gith="grep url .git/config"
alias gitl="git log"
alias gitld="git log --oneline --graph --decorate"
alias gitlo="git log --oneline"
alias gitplom="git pull origin master"
alias gitpo="git push origin"
alias gitpom="gitpo master"
alias gitpomg="git push origin HEAD:refs/for/master"
alias gitpull="git pull"
alias gitpush="git push"
alias gits="git status -sb"
alias gitsa="git subtree add --squash -P"
alias gitsp="git subtree pull --squash -P"
alias gitstash="git stash"
alias grep="grep -nrsI ${SKEL_GREP_OPTIONS}"
alias hisg="history | \grep"
alias kcvsdir="find . -name CVS -type d -exec rm -rf {} \;"
alias kdiff="find . -name 'diff.txt' -type f -exec rm {} \;"
alias kdu1="find . \( -name 'du.txt' -o -name 'du1.txt' -o -name 'du1' \) -type f -exec rm {} \;"
alias kerrors="find . \( -name 'errors' -o -name 'error_log' \) -type f -exec rm {} \;"
alias kgitdir="find . -name '.git' -type d -exec rm -rf {} \;"
alias kgrepit="find . -name 'grepit_*.log' -type f -exec rm {} \;"
alias ksvndir="find . -name '.svn' -type d -exec rm -rf {} \;"
alias la="ls -l -A"
alias lh="ls -A --ignore='[^.]*'"
alias ll="ls -l"
alias llr="ll -R"
alias lr="ls -R --ignore='CVS' --ignore='.svn' --ignore='.git'"
alias lw="watch 'ls -Alh'"
alias mkpw12="mkpasswd -l 12 -2 -s 0"
alias mkpw12s="mkpasswd -l 12 -2 -s 2"
alias mkpw="mkpasswd -l 10 -2 -s 2"
alias mysqltp="~/.skel/scripts/tuning-primer.sh > tuning-primer.txt; more tuning-primer.txt"
alias pgdns="ping 8.8.4.4"
alias phpcbf="phpcbf --standard=tests/phpcs.ruleset.xml"
alias phpcss="phpcs --standard=/Users/michael/Sites/wp/wp-content/plugins/testimonials-widget/ci/phpcs.ruleset.xml"
alias phpl="php -lf"
alias phpmds="phpmd . text /Users/michael/Sites/wp/wp-content/plugins/testimonials-widget/ci/phpmd.ruleset.xml"
alias ping="ping -c 5 "
alias portcup="sudo port clean --all all; sudo port -f uninstall inactive; sudo rm -rf /opt/local/var/macports/build/*; sudo rm -rf /opt/local/var/macports/distfiles/*; sudo rm -rf /opt/local/var/macports/packages/*"
alias portup="sudo port selfupdate; sudo port upgrade outdated"
alias rdl="cls; cls; rm debug.log ; touch debug.log; chmod a+rw debug.log; tail debug.log"
alias restart_mysql="sudo launchctl unload -w /Library/LaunchDaemons/org.macports.mysql5.plist; sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist"
alias rmtrash="rm -rf ~/.Trash/* ~/tmp/* /Volumes/PEIMIC/.Trash /Volumes/*/.Trash"
alias rsync="rsync -EPahz -e ssh --progress --stats"
alias scp="scp -r -p -C"
alias sudev="~/bin/fixwebsitepermissions su dev"
alias sulive="~/bin/fixwebsitepermissions su live"
alias svn2cl="svn log > changelog.txt"
alias svnc="svn ci"
alias svncup="svn cleanup .; svn up --force"
alias svnd="svn diff -x -b > diff.txt; vi diff.txt +0; rm diff.txt"
alias svnh="head .svn/entries"
alias svns="svn status"
alias svnup="svn up"
alias t3clr="rm -rf typo3temp/* typo3conf/temp_CACHED_*"
alias tail="tail -f -n -20"
alias webstart="apachectl start; mysql.server start"
alias webstop="apachectl stop; mysql.server stop"
alias wget="wget --no-check-certificate"
alias wpptr="phptidy.php replace"
alias wppua="wp core update; wp plugin update --all; wp theme update --all"
alias wspmmichael="sudo ~/bin/websitepermissions michael www devo"
alias wspmwww="sudo ~/bin/websitepermissions www www devo"