Pass as password manager and ncs improved
This commit is contained in:
@@ -42,13 +42,17 @@ extract() {
|
||||
}
|
||||
|
||||
ncs() {
|
||||
echo "+ Syncing Nextcloud @ ~/Nextcloud"
|
||||
mkdir ~/Nextcloud &> /dev/null
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "USAGE: ncs <server_url>"
|
||||
exit 1
|
||||
server="trude.store"
|
||||
else
|
||||
server=$1
|
||||
fi
|
||||
nextcloudcmd -u $USER --path "/SYNC" ~/Nextcloud "https://$1"
|
||||
echo "+ Syncing ~/Nextcloud/SYNC @ $server"
|
||||
mkdir ~/Nextcloud &> /dev/null
|
||||
nextcloudcmd -u $USER --path "/SYNC" ~/Nextcloud/SYNC "https://$server"
|
||||
}
|
||||
|
||||
set completion-ignore-case On
|
||||
|
||||
# Passwords
|
||||
export GITHUB_TOKEN=$(pass show github/token)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
[user]
|
||||
email = "ehtrude@gmail.com"
|
||||
name = "TrudeEH"
|
||||
password = $GITHUB_TOKEN
|
||||
|
||||
23
dotfiles/.mutt/muttrc
Normal file
23
dotfiles/.mutt/muttrc
Normal file
@@ -0,0 +1,23 @@
|
||||
set ssl_starttls=yes
|
||||
set ssl_force_tls=yes
|
||||
|
||||
set imap_pass="`pass show gmail/mutt`"
|
||||
set smtp_pass="`pass show gmail/mutt`"
|
||||
|
||||
set imap_user = 'ehtrude@gmail.com'
|
||||
|
||||
set from='ehtrude@gmail.com'
|
||||
set realname='TrudeEH'
|
||||
|
||||
set folder = imaps://imap.gmail.com/
|
||||
set spoolfile = imaps://imap.gmail.com/INBOX
|
||||
set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
|
||||
|
||||
set header_cache = "~/.mutt/cache/headers"
|
||||
set message_cachedir = "~/.mutt/cache/bodies"
|
||||
set certificate_file = "~/.mutt/certificates"
|
||||
|
||||
set smtp_url = 'smtps://ehtrude@gmail.com@smtp.gmail.com:465/'
|
||||
|
||||
set move = no
|
||||
set imap_keepalive = 900
|
||||
Reference in New Issue
Block a user