config

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

commit f1d98147609aad2295eace614acc2a299d1f6b65
parent 7e8ca7d10072981173ffa058e09ffe8a6ca94c72
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Wed, 12 May 2021 22:55:57 -0700

Add smc shell module

The smc module is a replacement for the mpc module. It uses smc(1),
a program I wrote, instead of mpc(1). While the smc module is now
the default the mpc module is still there to be used if it's wanted.

Diffstat:
Mlocal/ksh/.config/kshrc | 2+-
Alocal/shell/.local/share/shell/smc | 20++++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/local/ksh/.config/kshrc b/local/ksh/.config/kshrc @@ -12,4 +12,4 @@ PS4='4> ' mkdir -p "$(dirname $HISTFILE)" eval "$(sed 's/^/alias -d /' <"${XDG_CONFIG_HOME:-$HOME/.config}/dalias")" . include -include cd etc history mpc openbsd private simple +include cd etc history smc openbsd private simple diff --git a/local/shell/.local/share/shell/smc b/local/shell/.local/share/shell/smc @@ -0,0 +1,20 @@ +# smc shell functions + +m() smc "$@" + +# player +mP() m qu seek -1 +mn() m qu seek +1 +mp() m st pl + +# queue +ma() m qu add +mc() m qu cl +mca() m qu tr + +# playlist +ml() m qu li + +# database +mL() m db li +mu() m db up