Install homebrew and
brew install bash-completion pwgen
I'm using zsh for kubectl
completion (which is pretty essential for working with k8s).
- Install omyzsh with curl:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Install Docker Desktop for this (which includes
kubectl
for Kubernetes).
cd ~
ln -s workspace/dotfiles/.bashrc
ln -s workspace/dotfiles/.bash_profile
ln -s workspace/dotfiles/.bash_aliases
# and put any system-specific settings in ~/.profile
# zsh is the only shell to support kubectl completion atm
# You'll have to move the .zshrc out of the way which omyzsh installed
ln -s workspace/dotfiles/.zshrc
ln -s workspace/dotfiles/.vim
ln -s workspace/dotfiles/.vimrc
ln -s workspace/dotfiles/.psqlrc
ln -s workspace/dotfiles/.abcde.conf
ln -s workspace/dotfiles/.flac2mp3.conf
ln -s workspace/dotfiles/.gitconfig-includes
git config --global user.name "John Doe"
git config --global user.email [email protected]
git config --global include.path ~/.gitconfig-includes
cd ~/bin
ln -s ../workspace/dotfiles/bin/flac2mp3
ln -s ../workspace/dotfiles/bin/flac2mp3-rips-conversions
ln -s ../workspace/dotfiles/bin/kill-matching
ln -s ../workspace/dotfiles/bin/repomd-fix
cd ~/Library
ln -s ../workspace/dotfiles/Library/KeyBindings
To fix Home and End keys in terminal:
- Terminal > Preferences > Profiles > Keyboard
- Add mappings for Home to 'Send text' of
\033OH
and End to\033OF
- Add mappings for Page Up to
\033[5~
and Page Down to\033[6~
- this helps with vim for example.
(courtesy of http://apple.stackexchange.com/a/16137/11680)
To enable dark mode for individual apps in macOS Mojave onwards:
defaults write com.sublimetext.3 NSRequiresAquaSystemAppearance 0
defaults write com.macromates.TextMate NSRequiresAquaSystemAppearance 0
defaults write org.whispersystems.signal-desktop NSRequiresAquaSystemAppearance 0
defaults write com.tinyspeck.slackmacgap NSRequiresAquaSystemAppearance 0
defaults write com.coppertino.Vox NSRequiresAquaSystemAppearance 0
defaults write com.google.Chrome NSRequiresAquaSystemAppearance 0
defaults write com.postmanlabs.mac NSRequiresAquaSystemAppearance 0
(you can use osascript -e 'id of app "App Name"'
to identify an app)