config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 5192d7650661261ced931f706303af26938cb8c2
parent 48f193b51ddabdb92a171fbd86782403ff7bc4d6
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Tue,  2 Mar 2021 16:45:27 -0800

Emulate plan9port ls(1) with the ls and lc shell functions

I don't want plan9port to be a requirement so these functions act
similar using POSIX ls(1). Additionaly lc uses rs(1) which unfortunately
doesn't seem portable outside of BSD based systems.

Diffstat:
Mlocal/shell/.config/shell/fs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/local/shell/.config/shell/fs b/local/shell/.config/shell/fs @@ -1,6 +1,6 @@ # filesystem shell functions -ls() command ls -1 "$@" -lsc() { ls "$@" | rs ;} +ls() command ls -1A "$@" +lc() { ls "$@" | rs ;} sfind() find . -maxdepth 1 "$@" fp() f `which "${@:?No path specified}" 2>/dev/null`