config

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

commit 231343f2178d27b0a2f1ff5d89c021e1d843a4f4
parent 7a0320c19c2c72d29baf85309785f8c3830c9238
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Wed, 29 Jul 2020 21:29:48 -0700

Rename and remove some aliases

converted description's first character to lowercase equivilent.

Diffstat:
Maliases/.config/aliases | 49+++++++++++++++++++++++++------------------------
1 file changed, 25 insertions(+), 24 deletions(-)

diff --git a/aliases/.config/aliases b/aliases/.config/aliases @@ -7,45 +7,40 @@ if [ -f "$XDG_CONFIG_HOME/aliases.private" ]; then fi # random -alias mstat="command ps -eo pmem,rss,args --sort pmem | grep -v '^[[:space:]]0.0'" alias mpv="mpv --no-input-default-bindings" alias pkill="pkill -x" alias col="column -t" alias la="ls -A" -alias com="command" +alias cmd="command" alias mupdf="mupdf -I" alias w3m="w3m -cols 80" alias dcsv="col -s," alias wq="webq" -# The trailing space expands aliases +# the trailing space expands aliases alias doas="doas -- " alias man="man " -# Multiple file options opened as tabs +# multiple file options opened as tabs alias nvim="nvim -p" alias vim="vim -p" -# Use extended regular expressions +# use extended regular expressions alias sed="sed -E" alias grep="egrep" -# Clipboard +# clipboard alias grab="xclip -selection clipboard" alias push="xclip -selection clipboard -out" -# Very short +# very short alias f="$EDITOR" alias l="$PAGER" alias g="grep" alias ic="ifconfig" - -# Question to the non-existent viewers of this file. is there an rss aggregator -# for text that simply formats and prints to terminal, possibly with some -# selection options like feed and article? alias nb="newsboat" -# Package managment (openbsd) +# package managment # pa: install, pu: upgrade installed, pd: uninstall, pqq: query all, pQQ: # verbose query all, pq: query installed, pQ: verbose query installed. alias pkg_add="pkg_add -xV" @@ -89,19 +84,19 @@ alias mL="m load" alias mq="m search any" alias mC="m clear" -# Get mpd configuration (oneline options only) +# get mpd configuration (oneline options only) mpd-config() { grep $1 $XDG_CONFIG_HOME/mpd/mpd.conf | sed -E 's/.*"(.*)\"/\1/g' ;} -# Add current song to playlist +# add current song to playlist mato() { mpc current -f "%file%" >> $(eval echo $(mpd-config playlist_directory))/$@.m3u ;} -# Replace playlist with current +# replace playlist with current mrepl() { dir="$(eval echo $(mpd-config playlist_directory))" mv -v $dir/$1.m3u $dir/.$1.m3u && mpc save $1 } -# Find music directories +# find music directories mfind() { dir="$(eval echo "$(mpd-config music_directory)")" find "$dir" -type d | grep ${@-""} | sed "s:$dir/?::" @@ -118,25 +113,31 @@ mps() { esac } -# Search all history for `regex` +# search all history for `regex` hs() { fc -nl 0 | egrep "$1" ;} -# List podcast names -lsrpa() { rpa -ni0 | cut -d':' -f1 ;} +# display podcast names if no arguments are specified +rpa() { + if [ $# -eq 0 ]; then + command rpa -ni0 | cut -d':' -f1 + else + command rpa $@ + fi +} -# Unset proxy env variables +# unset proxy env variables nproxy() { unset ALL_PROXY; unset HTTP_PROXY ;} -# Search sxhkd keybinds +# search sxhkd keybinds lk() { egrep "${@-.}" -iC3 $XDG_CONFIG_HOME/sxhkd/sxhkdrc ;} -# Pipe du into sort -h +# pipe du into sort -h ds() { du -sh $@ | sort -h ;} -# Redo last command (I frequently type k+enter before escape in vi mode) +# redo last command (I frequently type k+enter before escape in vi mode) k() { fc -s ;} -# Make directories leading up to filename then edit that +# make directories leading up to filename then edit that ff() { mkdir -p `dirname $1` f $1