config

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

commit d8bfc205c44cb5a750103713e039c80acc2ec010
parent 203ae6def8434dcd6b5bef682fc5bc9a41b0cb7c
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Thu,  1 Apr 2021 18:55:00 -0700

Remove unused shell functions

Diffstat:
Mlocal/shell/.local/share/shell/aliases | 6+-----
Mlocal/shell/.local/share/shell/etc | 14--------------
2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/local/shell/.local/share/shell/aliases b/local/shell/.local/share/shell/aliases @@ -7,12 +7,8 @@ doas() command doas -- "$@" dsu() doas su "$@" fn() functions "$@" grep() egrep "$@" -mtime() stat -t '%F %T' -f%Sm%t%N "$@" -netget() curl -SsLO "$@" -pkill() command pkill -x "$@" reload() . "${ENV:?unset}" -sed() command sed -E "$@" -spm() tspm "$@" +esed() sed -E "$@" tolower() tr '[:upper:]' '[:lower:]' toupper() tr '[:lower:]' '[:upper:]' diff --git a/local/shell/.local/share/shell/etc b/local/shell/.local/share/shell/etc @@ -1,20 +1,6 @@ # shell functions fed() (cd "${XDG_DATA_HOME:-$HOME/.local/share}/feed" && feed "$@") -hfmt() lynx -dump "${@:--stdin}" -loop() while eval "$@"; do done -wloop() while { read && eval "$@" ;}; do done - -tp() { - case "$@" in - y) export ALL_PROXY="socks://localhost:9050" # curl - export HTTP_PROXY=$ALL_PROXY;; # vimb - n) unset ALL_PROXY; unset HTTP_PROXY;; - *) printf '%s: arguments must be 'y' or 'n'\n' $__progname;; - esac -} - -# e.g. grep -i ^a <words | bwrite words bwrite() ( tmp="$(mktemp -t proc-XXXXXXXXXX)" cat >"$tmp"