3 # http://www.shellperson.net/using-sudo-with-an-alias/
6 alias grep='grep --color=auto'
8 # always show English man pages
11 if command -v vim &> /dev/null;
13 alias vimdent='vim -esc "normal gg=G" -c "wq"'
16 if command -v ccze &> /dev/null;
22 # The $@ means that we can pass
23 # additional parameters to tail
24 tail "$@" -f "$FILENAME" | ccze
29 if command -v dot &> /dev/null;
34 dot -Tpng "$FILENAME" > "$(basename "$FILENAME" .dot).png"
38 if command -v tidy &> /dev/null;
40 alias htmltidy='tidy -utf8 -asxhtml -i -access 1'
43 if command -v diff &> /dev/null;
45 # Can be used with programs which expect a diff as input, e.g.:
46 # filediff file.c | .../linux/scripts/checkpatch.pl -
49 echo "Signed-off-by: "
50 diff -pruN /dev/null "$@"
54 # Drupal coding standard checks using Code Sniffer:
55 # https://www.drupal.org/node/1419980
56 if command -v phpcs &> /dev/null;
58 alias drupalcs="phpcs --standard=Drupal --extensions='php,module,inc,install,test,profile,theme,js,css,info,txt'"