~use password-store instead of shell for Wakatime
Wakatime key is stored in the password store, use the password module instead of a shell command to get the key
This commit is contained in:
@@ -154,11 +154,9 @@ A keybind and a routine
|
|||||||
|
|
||||||
** Wakatime
|
** Wakatime
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(use-package! wakatime-mode
|
(after! wakatime-mode
|
||||||
:after-call pre-command-hook
|
|
||||||
:config
|
|
||||||
(setq wakatime-cli-path (expand-file-name "~/.local/bin/wakatime"))
|
(setq wakatime-cli-path (expand-file-name "~/.local/bin/wakatime"))
|
||||||
(setq wakatime-api-key (replace-regexp-in-string "\n" "" (shell-command-to-string "pass Keys/Wakatime")))
|
(setq wakatime-api-key (password-store-get "Keys/Wakatime"))
|
||||||
(global-wakatime-mode +1))
|
(global-wakatime-mode +1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
Using new password holder (pass) to help with secure transactions. Doing all
|
Using new password holder (pass) to help with secure transactions. Doing all
|
||||||
|
|||||||
Reference in New Issue
Block a user