config/emacs: i am stupid
This commit is contained in:
parent
579401bd42
commit
33eb418765
1 changed files with 1 additions and 3 deletions
|
@ -1174,10 +1174,8 @@ GNU patch review metho dor sometihng idk
|
|||
(defun get-proton-mail-address-from-pass (command)
|
||||
"Execute COMMAND, concatenate its output with 'hello', and store it in my-greeting."
|
||||
(let ((output (shell-command-to-string command)))
|
||||
;; Trim whitespace from the output
|
||||
(setq output (string-trim output))
|
||||
;; Concatenate 'hello' with the command output
|
||||
(setq my-greeting (concat "@proton.me" output))))
|
||||
(setq proton-mail-address (concat "@proton.me" output))))
|
||||
|
||||
(get-proton-mail-address-from-pass "pass Proton\ Account | awk 'BEGIN {ORS=\"\"} FNR == 2{gsub(\"login: \", \"\"); gsub(/ /, \"\"); print}'")
|
||||
|
||||
|
|
Loading…
Reference in a new issue