config

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

commit c8641fdd18a9301a34b4bef1c66fff68d7bf8883
parent 3776d9ecc19a1a6e12172c92ac7f7042ca1222f7
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Tue, 20 Oct 2020 00:18:28 -0500

Add and use function to run comands within an alternative directory

add doin function to run commands in alternative directory.

add note function to run commands in notes directory.

update fed function to use doin.

add an alias to reload; self.

Diffstat:
Maliases/.config/aliases/main | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/aliases/.config/aliases/main b/aliases/.config/aliases/main @@ -53,13 +53,14 @@ unalias r 2>/dev/null # use all arguments for history search r() { fc -s "$*" ;} -# use feed within FEED_DIR. -fed() { (builtin cd $FEED_DIR && feed $@) ;} - # reload shell reload() { . ~/.profile include main } +alias self="reload" vol() { sndioctl output.level=$@ ;} +doin() { (builtin cd ${1:?No directory} && shift && $@) ;} +note() { doin $HOME/own/text/note/ $@ ;} +fed() { doin "$FEED_DIR" feed $@ ;}