summaryrefslogtreecommitdiff
path: root/.local/bin/shorts/diffdirs
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2024-11-21 13:30:52 +0530
committerVikas Kushwaha <dev@vikas.rocks>2024-11-21 13:30:52 +0530
commit5c916d69d457101326803eb076a746060e3618cf (patch)
treed6fce3256eede1c1bf78fb6a1be75b9cc4b84cee /.local/bin/shorts/diffdirs
Moved from github
Diffstat (limited to '.local/bin/shorts/diffdirs')
-rwxr-xr-x.local/bin/shorts/diffdirs6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/shorts/diffdirs b/.local/bin/shorts/diffdirs
new file mode 100755
index 0000000..9585f9f
--- /dev/null
+++ b/.local/bin/shorts/diffdirs
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+tree --dirsfirst -aL 3 "$1" > "$PREFIX/tmp/dir1.tree.txt"
+tree --dirsfirst -aL 3 "$2" > "$PREFIX/tmp/dir2.tree.txt"
+nvim -d "$PREFIX/tmp/dir1.tree.txt" "$PREFIX/tmp/dir2.tree.txt"
+