todgru / dotfiles

slim version of dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

todgru's dotfiles

  • .tmux.conf is available, but I don't use tmux much anymore. I like this conf, though. :)

execute this bit of script for setup

# Clone dotfiles repo to $HOME directory
git clone git@github.com:todgru/dotfiles.git $HOME/dotfiles
echo '
# added by todgru dotfiles
if [[ -s "${ZDOTDIR:-$HOME}/dotfiles/source-me.zsh" ]]; then
  source "${ZDOTDIR:-$HOME}/dotfiles/source-me.zsh"
fi
' >> ${ZDOTDIR:-$HOME}/.zshrc
ln -s $HOME/dotfiles/vimrc $HOME/.vimrc
ln -s $HOME/dotfiles/vim $HOME/.vim
ln -s $HOME/dotfiles/gitconfig $HOME/.gitconfig

zsh

Install Prezto

git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
  • copy .zpreztorc from old machine.

CLI helpers

more good stuff here

git

vim git gpg

  • brew install gnugp
  • setup ~/.gnupg/gpg-agent.conf file. this is all I needed:
echo "
default-cache-ttl 0
max-cache-ttl 0
" >> ~/.gnupg/gpg-agent.conf
  • download gnupg to ~/.vim/plugins/gnupg.vim
  • alias for decrypting: alias vd='vim -n -i "NONE" "+set filetype=yaml"'

Export key from old machine to new machine

  • list keys gpg --list-secret-keys
  • export key gpg --export-secret-keys {the id from the list} > my-key.asc
  • transfer key to new machine
  • import key gpg --import my-key.asc
  • delete public and private key gpg --delete-keys and gpg --delete-secret-keys

Edited gpg install from this gist

Other Apps

  • Clocker OSx timezone menu bar utility brew install --cask clocker
  • UTC Clock
  • VS Code Editor
    • on old machine, code --list-extensions > installed-extensions.txt
    • copy installed-extensions.txt to new machine
    • cat installed-extensions.txt | xargs -L 1 code --install-extension
    • enable VIM plugin key repeat: defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
  • NVM NodeJS version manager.
  • Homebrew
  • Hammerspoon disable launching iTunes Music whenever the headphone buttons are acidentally pressed.
  • Firefox bookmarks, settings and extensions.
  • Tableplus
  • Cisco AnyConnect
  • OS X: Disable System Sound Effects
  • Exiftool: manage EXIF metadata, download
  • Elasticsearch install on M1 Mac, instructions

About

slim version of dotfiles


Languages

Language:Vim Script 97.0%Language:Shell 2.3%Language:Lua 0.7%