diff --git a/config.fish b/config.fish index 6a10c95..2d909e6 100644 --- a/config.fish +++ b/config.fish @@ -26,7 +26,7 @@ if command --search p4 >/dev/null set -x P4PORT "humu.iocom.com:1666" set -x P4CONFIG p4.cfg set -x P4EDITOR nvim - set -x P4IGNORE .p4ignore + set -x P4IGNORE .ignore end # PATH @@ -38,11 +38,11 @@ test -e /usr/local/opt/python/libexec/bin ; and set -x PATH /usr/local/opt/pytho test -e $HOME/.cargo/bin ; and set -x PATH $HOME/.cargo/bin $PATH # Keychain -# if status --is-interactive +if status --is-interactive # TODO Take this out when keychain fixes this bug - # set -x GPG_AGENT_INFO "~/.gnupg/S.gpg-agent:"(pgrep gpg-agent)":1" - # keychain --eval --inherit any --agents gpg,ssh --quiet id_rsa 2B3A6377 | source - # end + set -x GPG_AGENT_INFO "~/.gnupg/S.gpg-agent:"(pgrep gpg-agent)":1" + keychain --eval --inherit any --agents gpg,ssh --quiet id_rsa 2B3A6377 | source +end # iTerm2 test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish diff --git a/khal.conf b/khal.conf index bd7c497..46dd8ce 100644 --- a/khal.conf +++ b/khal.conf @@ -1,8 +1,5 @@ [calendars] -[[fastmail_contacts_local]] -path = ~/Contacts/ -type = discover -[[fastmail_calendar_local]] +[[Fastmail]] path = ~/Calendars/ type = discover diff --git a/offlineimap.py b/offlineimap.py index dc0cbf3..0e7c6ae 100644 --- a/offlineimap.py +++ b/offlineimap.py @@ -1,11 +1,9 @@ import os -import gnupg +from subprocess import check_output home = os.environ['HOME'] -gpg = gnupg.GPG(gnupghome=home+"/.gnupg", use_agent=True) def decrypt_password(file): path = home + "/" + file - f = open(path, 'rb') - decrypted = gpg.decrypt_file(f) - return decrypted.data.strip() + res = check_output(["gpg", "-dq", path]) + return res.strip() diff --git a/spacemacs b/spacemacs index bf799ba..fdce05e 100644 --- a/spacemacs +++ b/spacemacs @@ -108,7 +108,6 @@ values." ;; configuration in `dotspacemacs/user-config'. dotspacemacs-additional-packages '( - ;; weechat all-the-icons spaceline-all-the-icons hackernews @@ -383,7 +382,10 @@ This is the place where most of your configurations should be done. Unless it is explicitly specified that a variable should be set before a package is loaded, you should place your code here." - ;; (require 'weechat) + (define-key evil-normal-state-map (kbd "C-h") 'evil-window-left) + (define-key evil-normal-state-map (kbd "C-l") 'evil-window-right) + (define-key evil-normal-state-map (kbd "C-j") 'evil-window-down) + (define-key evil-normal-state-map (kbd "C-k") 'evil-window-up) (use-package spaceline-all-the-icons :after spaceline @@ -651,7 +653,8 @@ you should place your code here." (require 'org-crypt) (org-crypt-use-before-save-magic) (setq org-tags-exclude-from-inheritance (quote ("crypt"))) - ;; (setq org-crypt-key nil) ;; symmetric encryption + (setq org-crypt-key nil) ;; symmetric encryption + (setq epg-gpg-program "/usr/local/bin/gpg") ;; Deft (setq deft-directory "~/Sync/Notes") diff --git a/symlinks.sh b/symlinks.sh index f52370d..d33b449 100644 --- a/symlinks.sh +++ b/symlinks.sh @@ -9,7 +9,7 @@ ln -sf ~/dotfiles/gitconfig ~/.gitconfig git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm ln -sf ~/dotfiles/tmux.conf ~/.tmux.conf mkdir -p ~/.config/khal; ln -sf ~/dotfiles/khal.conf ~/.config/khal/config -mkdir ~/.vdirsyncer; ln -sf ~/dotfiles/vdirsyncer/config ~/.vdirsyncer/config +mkdir ~/.config/vdirsyncer; ln -sf ~/dotfiles/vdirsyncer/config ~/.config/vdirsyncer/config mkdir ~/.gnupg; ln -sf ~/dotfiles/gpg-agent.conf ~/.gnupg/gpg-agent.conf mkdir ~/.ssh; ln -sf ~/dotfiles/ssh/config ~/.ssh/config mkdir -p ~/.config/khard; ln -sf ~/dotfiles/khard.conf ~/.config/khard/khard.conf