diff --git a/.functions b/.functions index da68b20..fdeba00 100644 --- a/.functions +++ b/.functions @@ -178,3 +178,13 @@ function tre() { function colormap() { for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done } + +function aws.print-all-instances() { + REGIONS=`aws ec2 describe-regions --region us-east-1 --output text --query Regions[*].[RegionName]` + for REGION in $REGIONS + do + echo -e "\nInstances in '$REGION'.."; + aws ec2 describe-instances --region $REGION | \ + jq '.Reservations[].Instances[] | "EC2: \(.InstanceId): \(.State.Name)"' + done +} diff --git a/.zshrc b/.zshrc index e837819..a461aa7 100644 --- a/.zshrc +++ b/.zshrc @@ -2,7 +2,7 @@ export LANG='en_US.UTF-8'; export LC_ALL='en_US.UTF-8'; -# Increase Bash history size. Allow 32³ entries; the default is 500. +# Increase Bash history size. export HISTSIZE='32768'; export HISTFILESIZE="${HISTSIZE}"; # Omit duplicates and commands that begin with a space from history. @@ -14,7 +14,6 @@ export GPG_TTY=$(tty); # Enable persistent REPL history for `node`. export NODE_REPL_HISTORY=~/.node_history; -# Allow 32³ entries; the default is 1000. export NODE_REPL_HISTORY_SIZE='32768'; # Use sloppy mode by default, matching web browsers. export NODE_REPL_MODE='sloppy'; @@ -42,8 +41,6 @@ else export EDITOR='nano' fi - - # Log bash history. function zshaddhistory() { echo "${1%%$'\n'}|${PWD} " >> ~/.zsh_history_ext @@ -59,8 +56,6 @@ source ~/dotfiles/.functions source ~/dotfiles/.aliases source ~/dotfiles/.extra -# This should always be last - DISABLE_AUTO_UPDATE="true" ZSH_HIGHLIGHT_MAXLENGTH=512 ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor) diff --git a/README.md b/README.md index 44880d4..25517e3 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,6 @@ git clone https://github.com/LikeCarter/dotfiles ./dotfiles/setup.sh ``` -### Other -- [1Password Git Signing](https://developer.1password.com/docs/ssh/git-commit-signing/) -- [NextDNS](https://nextdns.io) - - Block DNS requests to malware control servers, ad servers, and trackers. - -[MIT License](https://opensource.org/licenses/MIT) - +### Checklist +- System-wide key remapping caplocks to ctrl (System Settings → Keyboard → Modifier Keys) +- Configure [1Password commit signing](https://developer.1password.com/docs/ssh/git-commit-signing/) diff --git a/preferences/system.sh b/preferences/system.sh index 67449c2..5b80e5f 100755 --- a/preferences/system.sh +++ b/preferences/system.sh @@ -185,3 +185,6 @@ defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO # Prevent Time Machine from prompting to use new hard drives as backup volume defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true + +# Remove text replacements +defaults write -g NSUserDictionaryReplacementItems -array