This commit is contained in:
kento2 2026-03-25 14:14:08 +01:00
parent 4b0347543c
commit 01866d38c4
11 changed files with 402 additions and 12 deletions

View file

@ -13,7 +13,7 @@ g() { LC_ALL=C grep --exclude "*~" -r -P ${@:?regexp missing} }
sprunge() { cat $@ | curl -sF 'sprunge=<-' http://sprunge.us }
# minimal functions, 02mar
mkcd() { mkdir -p "$1"; cd "$1" }
ops() { a="$(lr -t 'type=f' -t '!mode|1' -A)" && "$EDITOR" "$a" }
ops() { a="$(lr -t 'type=f' -t '!mode|1' -A | fzy)" && "$EDITOR" "$a" }
set -o emacs
@ -25,6 +25,8 @@ alias pc='pass -c'
alias pe='pass edit'
cdpath="$HOME"
mktags() { ctags `lr -t 'name=~".c$"'` }
# date +hostname+ [battery]
printf '%s +%s+ %s\n' \
"$(date +%d%b%Y | tr [:upper:] [:lower:])" "$(hostname)" \