diff --git a/.bashrc b/.bashrc index 9a77094bf07646c1907b6314c8273ec34b15685e..2b936522c2ceb299c14ca038f6a5963cc7a324af 100644 --- a/.bashrc +++ b/.bashrc @@ -231,6 +231,10 @@ prune_ssh_sockets () { -execdir sh -c 'lsof -t "$1" >/dev/null || rm "$1"' _ {} \; } +rcnc () { + RCLONE_CONFIG_NEXTCLOUD_PASS="$(rclone obscure "$(ph show --field 'Password' 'shore.co.il/LDAP')")" rclone "$@" +} + set_title () { local default_title default_title="$(basename "$PWD")" diff --git a/.config/rclone/rclone.conf b/.config/rclone/rclone.conf index ce52714c862e0e0d21f856b59b79dbdd5bfc2d34..53dbfdd2406a9c7dab63acfe50dde548e7c5cc4d 100644 --- a/.config/rclone/rclone.conf +++ b/.config/rclone/rclone.conf @@ -2,4 +2,4 @@ type = webdav url = https://nextcloud.shore.co.il/remote.php/webdav/ vendor = nextcloud - +user = nimrod diff --git a/Documents/bin/download-password-db b/Documents/bin/download-password-db index 375e80d0e11b5f3e6a006eae0624f631d5be32e6..e48568c5effe694a07ef63a150b4236bd1a499f1 100755 --- a/Documents/bin/download-password-db +++ b/Documents/bin/download-password-db @@ -2,7 +2,11 @@ # pylint: disable=invalid-name """Runs rclone securely to download the Keepass password database from -Nextcloud.""" +Nextcloud. + +This is meant as a bootstrap step to get the Keepass password database +so that other steps that depend on the database can be used. +""" import getpass import os