diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-23 16:19:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-23 16:19:47 +1200 |
commit | f40c124aeaa3c3c9f8eed50bd11afb018bb0bee6 (patch) | |
tree | 84e908d6f9eac00f3f38ad6de927634a0c3f4aa5 | |
parent | Inline 'undodir' assignment (diff) | |
download | dotfiles-f40c124aeaa3c3c9f8eed50bd11afb018bb0bee6.tar.gz dotfiles-f40c124aeaa3c3c9f8eed50bd11afb018bb0bee6.zip |
Expand tabs in TABS.md
Irony, thy name is whitespace.
-rw-r--r-- | TABS.md | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -4,15 +4,15 @@ Spaces to tabs If you prefer tabs to spaces, the following recipe seems to convert everything pretty nicely: - $ find . -name .git -prune -o -name vim -prune -o -type f \ - -exec sh -c \ - 'for f;do unexpand -t4 "$f">"$f".tmp;mv "$f" "$f".tmp;done' \ - _ {} + + $ find . -name .git -prune -o -name vim -prune -o -type f \ + -exec sh -c \ + 'for f;do unexpand -t4 "$f">"$f".tmp;mv "$f" "$f".tmp;done' \ + _ {} + - $ find vim -name bundle -prune -o -type f \ - -exec sh -c \ - 'for f;do unexpand -t2 "$f">"$f".tmp;mv "$f" "$f".tmp;done' \ - _ {} + + $ find vim -name bundle -prune -o -type f \ + -exec sh -c \ + 'for f;do unexpand -t2 "$f">"$f".tmp;mv "$f" "$f".tmp;done' \ + _ {} + If you have GNU unexpand(1) and can add `--first-only` to each of those calls, the results seem perfect. |