-
Notifications
You must be signed in to change notification settings - Fork 0
/
_aliases
43 lines (35 loc) · 1.67 KB
/
_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
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ls='ls --color=always'
# For svn, grepping out external junk.
alias mysvnst="svn st | grep -vE '^(P|X|$)'"
# I never remember how to format dates.
# Use like mysqldump > ~/backups/database_$(isodate).sql
alias isodate="date +%Y-%m-%d"
# Ubuntu aliases
alias 'a=sudo aptitude'
alias 'ai=sudo aptitude install'
alias 'ar=sudo aptitude remove'
alias 'au=sudo aptitude update'
alias 'ag=sudo aptitude safe-upgrade'
alias 'as=apt-cache search'
alias 'aw=apt-cache show'
# Used for drupal
alias drgrep='find . -not -iwholename "*.svn" -type f \( -name "*.php" -o -name "*.module" -o -name "*.inc" -o -name "*.install" \) -print0 | xargs -0 -n1 -P4 grep --color=auto -nH'
alias jsxgrep='find . -not -iwholename "*.fusion" -type f -name "*.jsx" -print0 | xargs -0 -n1 -P4 grep --color=auto -nH'
alias drupalcs='phpcs --standard=$HOME/.composer/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml --extensions=php,module,inc,install,test,profile,theme'
alias psrcs='phpcs --standard=$HOME/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/ruleset.xml'
# Used for git
alias ga='git add'
alias gc='git commit'
alias gca='git commit -a'
alias gcam='git commit -a -m'
alias gpom='git push origin master'
alias gpod='git push origin dev'
# Download mp3 files from youtube-dl.
# TODO transliterate instead of reducing to ASCII. Maybe fork youtube-dl?
alias youtube-dl-mp3='youtube-dl -x --audio-format mp3 --restrict-filenames -o "%(title)s.%(ext)s"'
alias p='cd /home/tyler/projects/'
alias cr='lando drush cr'
alias grep='grep --color=auto -I --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox,.next,node_modules,out-storybook,img}'