config

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

commit cb2edacaf8c7fe7dc970437400611dfd12756892
parent a692a18ab68eecd8e22410def3a3e44878972ada
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Mon,  5 Apr 2021 20:28:53 -0700

Add various shell functions

- Add clean to only remove empty files
- Add md as a shorthand to mkdir(1)
- Add rd as a shorthand to rmdir(1)

Diffstat:
Mlocal/shell/.local/share/shell/simple | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/local/shell/.local/share/shell/simple b/local/shell/.local/share/shell/simple @@ -1,6 +1,7 @@ # simple shell functions ap() apropos "$@" +clean() find "$@" -maxdepth 0 -empty -delete curl() command curl -sS "$@" date() command date "${@:-+%F %T %z}" doas() command doas -- "$@" @@ -11,6 +12,8 @@ fn() functions "$@" grab() xclip -selection clipboard "$@" grep() egrep "$@" ls() 9 ls "$@" +md() mkdir "$@" +rd() rmdir "$@" reload() . "${ENV:?unset}" sfind() find . -maxdepth 1 -mindepth 1 "$@" tolower() tr '[:upper:]' '[:lower:]'