add a new function: indent_suckless

This commit is contained in:
Sergei Akhmatdinov 2020-03-15 21:16:46 -04:00
parent f83e08b05f
commit 2533e9f5a0
2 changed files with 24 additions and 4 deletions

View File

@ -1,3 +1,3 @@
GuiFont Input:h20
GuiFont Input Mono:h20
color blackboard

View File

@ -9,9 +9,6 @@ export EDITOR='nvim'
export PAGER='less'
export BROWSER='qutebrowser'
# Add dotnet tools
# export PATH="$PATH:/home/sakhmatd/.dotnet/tools"
############################################################
## Functions
############################################################
@ -38,6 +35,29 @@ transfer()
rm -f $tmpfile;
}
# Format a file close to suckless.org guidelines
indent_suckless()
{
indent $1 -brs \
-nprs \
-npcs \
-i8 \
-fc1 \
-br \
-brf \
-saf \
-sai \
-saw \
-ncs \
-nfca \
-il0 \
-ce \
-nss \
-c0 \
-cd0 \
-ut \
-o $2
}
############################################################
## Aliases