Compare commits

...

2 Commits

Author SHA1 Message Date
Sergei Akhmatdinov 0e3b094894 Merge branch 'master' of https://git.darkn.space/sakhmatd/dotfiles 2020-03-15 21:16:59 -04:00
Sergei Akhmatdinov 2533e9f5a0 add a new function: indent_suckless 2020-03-15 21:16:46 -04:00
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='vim'
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