Compare commits

...

3 Commits

Author SHA1 Message Date
bd622b8f2d
rem.sh: added script
simple reminder utility
2023-04-02 18:40:47 -04:00
50f30506de
sorter.sh: also sort webps 2023-04-02 18:37:43 -04:00
88a34f388d
nvim: re-enable code folding 2023-04-02 18:37:06 -04:00
5 changed files with 68 additions and 1 deletions

View File

@ -27,3 +27,5 @@ set __fish_git_prompt_showupstream auto
set fish_color_param normal
set fish_color_cwd grey
rem.sh show

View File

@ -153,6 +153,6 @@ require'nvim-treesitter.configs'.setup {
EOF
" Code folding
"set foldmethod=expr
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
"autocmd BufEnter * normal zR

60
src/.local/bin/rem.sh Executable file
View File

@ -0,0 +1,60 @@
#!/bin/sh
# simple todo utility
# nags me every time i start a shell
set -e
scriptname=$0
subcmd=$1
if [ -z "$REM_FILE" ]; then
REM_FILE="$HOME/.reminder-file"
touch "$REM_FILE"
fi
sub_help() {
echo "usage:"
echo " $scriptname <command> [options]"
echo
echo "commands:"
echo " show show all entries"
echo " add append new entry"
echo ' edit open reminder file in $EDITOR'
echo
echo "Set $REM_FILE"
}
sub_show() {
REMS="$(cat "$REM_FILE" | sed -z 's/^\n$//g')"
if [ ! -z "$REMS" ]; then
printf "reminders:\n\n%s\n\n" "$REMS"
fi
}
sub_add() {
TMP="$(mktemp)"
$EDITOR "$TMP"
cat "$TMP" >> "$REM_FILE"
}
sub_edit() {
$EDITOR "$REM_FILE"
}
sub_congrats() {
notify-send -a "🎉" "congrats"
}
case $subcmd in
"" | "--help" | "-h")
sub_help
;;
*)
shift
sub_${subcmd} "$@"
if [ $? = 127 ]; then
echo "error: unknown command '$subcmd'"
exit 1
fi
;;
esac

View File

@ -43,6 +43,7 @@ find ~/quar \
-name '*.jpg' -o \
-name '*.png' -o \
-name '*.jpeg' -o \
-name '*.webp' -o \
-name '*.gif' \
\) | \
while read -r FILE; do

View File

@ -32,9 +32,13 @@ export GOPATH="$HOME"/.local/go
export npm_config_userconfig=$XDG_CONFIG_HOME/npm/config
export npm_config_cache=$XDG_CACHE_HOME/npm
export npm_config_prefix=$XDG_DATA_HOME/npm
# minrss scripts
export MRSS_DIR="$HOME/dox/rss"
# reminder script
export REM_FILE="$HOME/dox/not/rem"
# Set default programs
export EDITOR="nvim"
export BROWSER="qutebrowser"