.local/bin: Add focus & notes/writing scripts
This commit is contained in:
parent
4e5a4e574a
commit
df4a2aa87f
|
@ -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 &
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue