Compare commits

..

2 Commits

Author SHA1 Message Date
Jason Swank
8cfa5d009d
zsh: fix git/.env path 2025-01-15 21:13:57 +00:00
Jason Swank
167d94e98c
nvim: shortcut for toc / tf fmt 2025-01-15 21:13:09 +00:00
2 changed files with 6 additions and 3 deletions

View File

@ -37,8 +37,11 @@ let g:UltiSnipsListSnippets="<c-l>"
" typing idate inserts the current date
iab idate <c-r>=strftime("%Y-%m-%d")<cr>
" use Ctrl-M to insert a table of contents for markdown from the current line to EOF
noremap <c-m> <cmd>.put =execute('.,$write !gh-md-toc --hide-header --hide-footer')<cr>
" use \ toc to insert a table of contents for markdown from the current line to EOF
nmap <leader>toc <cmd>.put =execute('.,$write !gh-md-toc --hide-header --hide-footer')<cr>
" use \ tf to format a buffer as terraform
nmap <leader>tf <cmd>!terraform fmt %<cr>
set lazyredraw " redraw only when req'd
set wildmenu " visual auto-complete

View File

@ -87,7 +87,7 @@ if [ -e $HOME/cfa-work/.zshrc ]; then
. $HOME/cfa-work/.zshrc
fi
for env in $HOME/.okta/.env $HOME/.aws/.env $HOME/config/git/.env; do
for env in $HOME/.okta/.env $HOME/.aws/.env $HOME/.config/git/.env; do
if [ -r $env ]; then
export $(xargs < $env)
fi