diff --git a/.config/lvim/config.lua b/.config/lvim/config.lua index 8b46b1f..c11e3ce 100644 --- a/.config/lvim/config.lua +++ b/.config/lvim/config.lua @@ -137,6 +137,7 @@ lvim.plugins = { }, { "tpope/vim-rhubarb" }, { "rodjek/vim-puppet" }, + { "hunner/vim-beancount" }, { "simnalamburt/vim-mundo" }, { "ethanholz/nvim-lastplace", diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5636fdd..9b33673 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -527,5 +527,13 @@ nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) +" beancount macros +au BufReadPost,BufNewFile *.beancount + \ let @f = 'joExpenses:Megs:Foodjj0zz' | + \ let @o = 'joExpenses:Megs:Otherjj0zz' | + \ let @p = 'joExpenses:Needs:Petroljj0zz' | + \ let @b = 'joAssets:ZeroSum:BankTransferjj0zz' | + \ let @w = 'kkkkA #wrong-cardjjjj' + " Use K to show documentation in preview window nnoremap K :call ShowDocumentation() diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf index 4510ffd..0ea09f1 100644 --- a/.gnupg/gpg-agent.conf +++ b/.gnupg/gpg-agent.conf @@ -2,6 +2,9 @@ default-cache-ttl 3600 max-cache-ttl 3600 enable-ssh-support #disable-scdaemon +pinentry-program /usr/local/bin/pinentry-mac +#pinentry-program /usr/sbin/pinentry-curses +#pinentry-program /opt/homebrew/bin/pinentry-mac #pinentry-program /usr/bin/pinentry-curses pinentry-program /Users/haugenh1/.gnupg/pinentry-ide.sh #extra-socket /Users/hunner/.gnupg/S.gpg-agent.extra \ No newline at end of file diff --git a/.zshrc b/.zshrc index 3095d04..0f810ed 100644 --- a/.zshrc +++ b/.zshrc @@ -80,6 +80,14 @@ if test -d /etc/profile.d/; then done unset profile fi +# bison for beancount 3 +if [ -d /usr/local/opt/bison/bin ] ; then + export PATH=/usr/local/opt/bison/bin:$PATH + export LDFLAGS="-L/usr/local/opt/bison/lib" +fi +# for latex +eval "$(/usr/libexec/path_helper)" + #gem's path if [ -d ~/.gems/bin ] ; then export PATH="$HOME/.gems/bin:$PATH" @@ -378,7 +386,7 @@ fi # The next line updates PATH for the Google Cloud SDK. if [ -f '/home/hunner/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/home/hunner/Downloads/google-cloud-sdk/path.zsh.inc'; fi -eval "$(/opt/homebrew/bin/brew shellenv)" +#eval "$(/opt/homebrew/bin/brew shellenv)" # For 1.25 gke auth update export USE_GKE_GCLOUD_AUTH_PLUGIN=True