diff --git a/.local/bin/focus b/.local/bin/focus new file mode 100755 index 0000000..2649f19 --- /dev/null +++ b/.local/bin/focus @@ -0,0 +1,4 @@ +#!/bin/sh +playlistPath="$HOME/daten/music/Playlists" +vlc $(find $playlistPath -iname "Focus$1.m3u8" | grep . || find $playlistPath -iname "$1.m3u8") >/dev/null 2>&1 & + diff --git a/.local/bin/wr b/.local/bin/wr new file mode 100755 index 0000000..ac5907b --- /dev/null +++ b/.local/bin/wr @@ -0,0 +1,15 @@ +#!/bin/sh +p=$PWD +cd $HOME/daten/Dropbox/dokumente/notes +case $1 in +log) file=life/${2:-general};; +idea) file=idea/$2.md;; +write) file=writings/$2.md;; +*) file=$2.md;; +esac +comment=$(test -d $file && echo Edit || echo Create) +test "$3" && echo $3 >>$file || $EDITOR $file +git add $file +git commit -m "$comment $file" +git push +cd $p