Add 1pass/Lola stuff
This commit is contained in:
parent
995f178708
commit
5273796d77
16
emacs/.emacs.d/config/init-1pass.el
Normal file
16
emacs/.emacs.d/config/init-1pass.el
Normal 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)
|
12
emacs/.emacs.d/config/init-lola.el
Normal file
12
emacs/.emacs.d/config/init-lola.el
Normal 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)
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user