config

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

commit 884b56ae031dc7130af1235f616e6ac773c066ab
parent 92f7eae01ff841cf6d8c53c4b9515b8059dee524
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Wed, 29 Jul 2020 16:45:08 -0700

Move and remove functions

some functions moved to shell scripts in bin reposotory

Diffstat:
Maliases/.config/aliases | 48------------------------------------------------
1 file changed, 0 insertions(+), 48 deletions(-)

diff --git a/aliases/.config/aliases b/aliases/.config/aliases @@ -111,16 +111,6 @@ mfind() { find "$dir" -type d | grep ${@-""} | sed "s:$dir/?::" } -# get title from zfeed output -zt() { - cut -f2 -} - -# format and view zfeed output -zv() { - cut -f4 | htt | less -} - # Search all history for `regex` hs() { fc -nl 0 | egrep "$1" ;} @@ -155,52 +145,14 @@ prc() fi } - -# Print the current date, time, or date and time to stdout. -now() -{ - local date="%Y%m%d" - local time="%H%M%S" - if [ -z $1 ]; then - now full - else - case $1 in - f|full) date +$date-$time;; - d|date) date +$date;; - t|time) date +$time;; - *) echo "error: undefined" 1>&2; return 1;; - esac - fi -} - # Reinitialize shell self() { exec $0 } -# convert html to text -htt() -{ - w3m -T text/html -dump -cols ${1:-${COLUMNS:-80}} -} - # get nth line from stdout nth() { head -n ${1:?"nth: no index"} | tail -1 } - -# get searx query url from all arguments (sfs: searx format string) -sfs() -{ - local mirror=searx.prvcy.eu - local lang=en-US - local query="$(echo -n $@ | sed "s/ /%20/g")" - echo "https://${mirror}/?q=${query}&categories=general&language=${lang}" -} - -# use w3m with all arguments put into searx url -w3() { - w3m "$(sfs $@)" -}