From 9ab4b99d7e93679f4ca4ce7b5f659553152f5b6c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 20 Feb 2021 00:41:48 -0600 Subject: Move password stuff and add Tramp config --- config.org | 59 +++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 14 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 4faef32..954f7a7 100644 --- a/config.org +++ b/config.org @@ -2194,20 +2194,6 @@ that one item is. (define-key acdw/leader "g" #'magit-status) #+end_src -**** Use =~/.authinfo= for passwords - -The =auth-info= line should look like this: - -#+begin_example -machine git.example.com user acdw password hahayeahrightyamoroniwouldn'tgiveyouthat -#+end_example - -#+begin_src emacs-lisp :noweb-ref hooks - (autoload 'magit-process-password-auth-source "magit") - (add-hook 'magit-process-find-password-functions - #'magit-process-password-auth-source) -#+end_src - **** Windows setup Following the [[https://github.com/magit/magit/wiki/Pushing-with-Magit-from-Windows][wiki page located here]]. Also make sure to run the @@ -3218,6 +3204,51 @@ This function require [[https://github.com/simonthum/git-sync][git-sync]]. (define-key acdw/leader (kbd "C-M-f") #'acdw/git-sync-elfeed-db) #+end_src +*** Passwords + +**** Password cache + +#+begin_src emacs-lisp :noweb-ref settings + (setq-default password-cache-expiry nil) +#+end_src + +**** Use =~/.authinfo= for passwords + +The =auth-info= line should look like this: + +#+begin_example +machine git.example.com user acdw password hahayeahrightyamoroniwouldn'tgiveyouthat +#+end_example + +#+begin_src emacs-lisp :noweb-ref hooks + (autoload 'magit-process-password-auth-source "magit") + (add-hook 'magit-process-find-password-functions + #'magit-process-password-auth-source) +#+end_src + +*** TRAMP + +It stands for ... something kind of stupid, I don't remember. I'm pulling this +from [[https://github.com/grandfoobah/spartan-emacs/blob/master/spartan-layers/spartan-settings.el][Spartan Emacs]]. It recommends the following in =~/.ssh/config=: + +#+begin_example + Host * + ForwardAgent yes + AddKeysToAgent yes + ControlMaster auto + ControlPath ~/.ssh/master-%r@%h:%p + ControlPersist yes + ServerAliveInterval 10 + ServerAliveCountMax 10 +#+end_example + +#+begin_src emacs-lisp :noweb-ref settings + (setq-default tramp-default-method "ssh" + tramp-copy-size-limit nil + tramp-use-ssh-controlmaster-options nil + tramp-default-remote-shell "/bin/bash") +#+end_src + ** Linux (home) :PROPERTIES: :header-args: :noweb-ref linux-specific -- cgit 1.4.1-21-gabe81