add a new function: indent_suckless
This commit is contained in:
parent
f83e08b05f
commit
2533e9f5a0
|
@ -1,3 +1,3 @@
|
|||
GuiFont Input:h20
|
||||
GuiFont Input Mono:h20
|
||||
|
||||
color blackboard
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue