aboutsummaryrefslogtreecommitdiff
path: root/scripts/sl
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-04-28 13:18:49 +0000
committerEuAndreh <eu@euandre.org>2019-04-28 13:18:49 +0000
commit4a73dca595e57751448899053cddb958c17fe75c (patch)
tree8c1a0b9d997fc4a0531559f6b7e8102deae25f74 /scripts/sl
parentUpdate os-installation.sh (diff)
parentSplit vagrant cmds. (diff)
downloaddotfiles-4a73dca595e57751448899053cddb958c17fe75c.tar.gz
dotfiles-4a73dca595e57751448899053cddb958c17fe75c.tar.xz
Merge remote-tracking branch 'srht/master'
Diffstat (limited to 'scripts/sl')
-rwxr-xr-xscripts/sl13
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/sl b/scripts/sl
deleted file mode 100755
index 2333462..0000000
--- a/scripts/sl
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env bash
-
-# Taken from:
-# https://gir.st/blog/sl-alt.htm
-
-# sl - prints a mirror image of ls. (C) 2017 Tobias Girstmair, https://gir.st/, GPLv3
-
-LEN=$(ls "$@" |wc -L) # get the length of the longest line
-
-ls "$@" | rev | while read -r line
-do
- printf "%${LEN}.${LEN}s\\n" "$line" | sed 's/^\(\s\+\)\(\S\+\)/\2\1/'
-done \ No newline at end of file