Setting up lf
This commit is contained in:
11
.local/bin/setup/setupjoplin
Executable file
11
.local/bin/setup/setupjoplin
Executable 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
|
||||
Reference in New Issue
Block a user