config/emacs: i am stupid

This commit is contained in:
Sakooooo 2024-09-24 22:33:31 +04:00
parent 579401bd42
commit 33eb418765
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -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}'")