Add 1pass/Lola stuff

This commit is contained in:
Jeremy Dormitzer 2021-03-23 13:46:55 -04:00
parent 995f178708
commit 5273796d77
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,16 @@
;; -*- lexical-binding: t; -*-
(use-package 1password
:straight (:host github
:repo "xuchunyang/1password.el"
:fork (:host github :repo "jdormit/1password.el"))
:defer t
:config
(advice-add '1password-login :around
(lambda (oldfn password &rest args)
(apply oldfn (shell-quote-argument password) args)))
(1password-login (password-store-get "team-lolatravel.1password.com")))
(1password-get-password "jdormit-test")
(provide 'init-1pass)

View File

@ -0,0 +1,12 @@
;; -*- lexical-binding: t; -*-
;; Lola stuff
(defun lola-core-models-prod ()
"Opens a PSQL buffer to the prod core models database"
(interactive)
(let ((sql-database (1password-get-password "lola-server prod db (read-only)"))
(sql-postgres-login-params nil))
(sql-postgres)))
(provide 'init-lola)

View File

@ -101,6 +101,8 @@
(require 'init-epub)
(require 'init-homebrew)
(require 'init-elfeed)
(require 'init-1pass)
(require 'init-lola)
(when (file-exists-p custom-file)
(load custom-file 'noerror 'nomessage))