summaryrefslogtreecommitdiff
path: root/lsn
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-10-10 17:50:07 +0200
committerfilip <“filip.rabiega@gmail.com”>2025-10-10 17:50:07 +0200
commite22232b575e6ffe9649c90de623023dc398a6241 (patch)
treefe3240676df694bff551fab9e9c81ac2ab0c0f3f /lsn
parent8b23667b4e7435e96a60d99c3f5e5e9583237b18 (diff)
downloadchadscripts-e22232b575e6ffe9649c90de623023dc398a6241.tar.gz
chadscripts-e22232b575e6ffe9649c90de623023dc398a6241.tar.bz2
chadscripts-e22232b575e6ffe9649c90de623023dc398a6241.zip
new stuff
Diffstat (limited to 'lsn')
-rwxr-xr-xlsn15
1 files changed, 15 insertions, 0 deletions
diff --git a/lsn b/lsn
new file mode 100755
index 0000000..46abd71
--- /dev/null
+++ b/lsn
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# New and better ls
+# TODO: fix simlinks, flags break them for some reason
+ls_new () {
+ LC_ALL=C $( which ls ) -lAFh --color=always "$1" | awk '{
+ name = $9;
+ for (i = 10; i <= NF; i++) name = name " " $i;
+ print $1, $5, name
+ }' | column -t -l 3 -s ' '| tail -n +2
+}
+
+dir="$1"
+[ -z "$dir" ] && dir="$(pwd)"
+ls_new "$dir"