Setting up lf

This commit is contained in:
2021-05-23 20:32:50 +01:00
parent 8b109fc010
commit bc8d62e90b
9 changed files with 50 additions and 10 deletions

11
.local/bin/setup/setupjoplin Executable file
View File

@@ -0,0 +1,11 @@
#! /bin/bash
TOWER=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Scarif: Tower" 2>&1)
TOWERUN=$(echo "$TOWER" | grep -Po "(?<=login: )\w+")
TOWERPW=$(echo "$TOWER" | grep -Po "(?<=pass : ).+(?=\")")
joplin config sync.target 5
joplin config sync.5.path https://tower.scarif.space/remote.php/dav/files/chris/Joplin
joplin config sync.5.username "$TOWERUN"
joplin config sync.5.password "$TOWERPW"
joplin sync