all repos — dotfiles @ a8cae402f4ed2e1513d0811ff82947efe1f6c4be

my *nix dotfiles

Cleaner commenting scripts
Anirudh Oppiliappan x@icyphox.sh
Mon, 11 Oct 2021 15:18:14 +0530
commit

a8cae402f4ed2e1513d0811ff82947efe1f6c4be

parent

da7509d71e5f81a121cc94d3fd615fb9d6ad2f6c

2 files changed, 11 insertions(+), 2 deletions(-)

jump to
M bin/c+bin/c+

@@ -1,3 +1,7 @@

#!/bin/sh -sed s'/^'/'\/\/'//+symbol="$1" + +[ ! "$symbol" ] && symbol='// ' + +sed "s!^!$symbol!"
M bin/c-bin/c-

@@ -1,3 +1,8 @@

#!/bin/sh -sed s@^[' '' ']*//@@+symbol="$1" + +[ ! "$symbol" ] && symbol="// " + + +sed "s!^$symbol*!!"