Compare commits
3 Commits
105049615e
...
bd622b8f2d
Author | SHA1 | Date | |
---|---|---|---|
bd622b8f2d | |||
50f30506de | |||
88a34f388d |
@ -27,3 +27,5 @@ set __fish_git_prompt_showupstream auto
|
||||
|
||||
set fish_color_param normal
|
||||
set fish_color_cwd grey
|
||||
|
||||
rem.sh show
|
||||
|
@ -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
60
src/.local/bin/rem.sh
Executable 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
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user