dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

commit 6afcc40ca6e96bf7a7d152d632be96b1b50c07eb
parent f003740436f2eb90b09d25fe70caaede269a3798
Author: Anton Konyahin <me@konyahin.xyz>
Date:   Sun, 25 Feb 2024 14:44:31 +0300

misc: move notes into gopher

Diffstat:
Mscripts/dot-bin/status.sh | 2+-
Msh/.config/ksh/kshrc | 11+++++------
2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/scripts/dot-bin/status.sh b/scripts/dot-bin/status.sh @@ -14,7 +14,7 @@ while true; do #SONG=$(mpc current) [ -n "$SONG" ] && SONG="🎧 $SONG " - TASK=$(grep "+active" /home/anton/data/notes/todo.txt | grep -v "^x") + TASK=$(grep "+active" /home/anton/public_gopher/todo.txt | grep -v "^x") [ -n "$TASK" ] && TASK="🔵 $(clean_task "$TASK")" xsetroot -name "$TASK $SONG🔋$CHARGE% $LAYOUT $DATE" diff --git a/sh/.config/ksh/kshrc b/sh/.config/ksh/kshrc @@ -33,9 +33,6 @@ alias isync='mbsync -c ~/.config/.mbsyncrc -a && mfilter ~/data/mail/fastmail' alias l='ls -p -A' alias lr='l -R' -alias scratch='$EDITOR ~/data/notes/scratch.md' -alias todo='$EDITOR ~/data/planing/todo.md' - alias esh='$EDITOR ~/.config/ksh/kshrc' alias evi='$EDITOR ~/.nexrc' alias evim="$EDITOR $MYVIMRC" @@ -45,9 +42,9 @@ alias enbu='$EDITOR ~/.newsboat/urls' export FZF_DEFAULT_OPTS="--preview='bat {}'" alias ef='$EDITOR $(find . | fzf)' alias et='$EDITOR -t $(cat tags | awk "{print \$1}" | fzf)' -alias en='$EDITOR "$(find ~/data/notes -type f | fzf)"' -alias vn='v "$(find ~/data/notes -type f | fzf)"' -alias es='$EDITOR "$(find ~/dotfiles -type f ! -path "*.git/*" | fzf)"' +alias en='$EDITOR "$(find ~/public_gopher -type f | fzf)"' +alias vn='v "$(find ~/public_gopher -type f | fzf)"' +alias edot='$EDITOR "$(find ~/dotfiles -type f ! -path "*.git/*" | fzf)"' alias cvsupdate='cvs -q up -Pd -A' alias cvsdiff='cvs diff -uNp' @@ -56,6 +53,8 @@ alias cvsrestore='cvs update -C' alias gtd-d="sttemp gtd-daily | less" alias gtd-w="sttemp gtd-weekly | less" +alias notes="vf1 localhost/1/~anton" + fzf-in () { found=$(find . -not -path "*.git*" | fzf) [ -d "$found" ] && cd "$found" && return