summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/cmdfmt5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/bin/cmdfmt b/.local/bin/cmdfmt
index 37218d7..634e9c6 100755
--- a/.local/bin/cmdfmt
+++ b/.local/bin/cmdfmt
@@ -3,6 +3,11 @@
3use strict; 3use strict;
4 4
5my $textwidth = $ARGV[0] // 80; 5my $textwidth = $ARGV[0] // 80;
6
7if ($textwidth == 0) {
8 $textwidth = 80;
9}
10
6# TODO: get tabstop from vim as well <17-11-21, yigit> # 11# TODO: get tabstop from vim as well <17-11-21, yigit> #
7my $tabstop = ' ' x 4; 12my $tabstop = ' ' x 4;
8 13