summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2016-09-04 21:12:21 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2016-09-04 21:12:21 (GMT)
commitdb7827a694ff81008a534991760a79a78f928c09 (patch)
tree271debdcd82129dbf08a32cd83fd71cb0879f88b
parentfa9002c6c1f61f0fc759d00d915b150e15a72cbb (diff)
downloaddot-files-db7827a694ff81008a534991760a79a78f928c09.zip
dot-files-db7827a694ff81008a534991760a79a78f928c09.tar.gz
dot-files-db7827a694ff81008a534991760a79a78f928c09.tar.bz2
bash aliases: add 'gnuindent' alias
Indentation of C files according to GNU coding standards https://www.gnu.org/prep/standards/html_node/Formatting.html
-rw-r--r--bash_aliases4
1 files changed, 4 insertions, 0 deletions
diff --git a/bash_aliases b/bash_aliases
index 1fe5876..2bbacc9 100644
--- a/bash_aliases
+++ b/bash_aliases
@@ -122,3 +122,7 @@ fi
# Unicode helper, print input in octals
alias uod='LC_ALL=C od -An -c'
+
+# From GNU Coding-Standard guidelines
+# https://www.gnu.org/prep/standards/html_node/Formatting.html
+alias gnuindent='indent -nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2 -ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -psl -nsc -nsob'