Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
7 changes: 1 addition & 6 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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';
Expand Down Expand Up @@ -42,8 +41,6 @@ else
export EDITOR='nano'
fi



# Log bash history.
function zshaddhistory() {
echo "${1%%$'\n'}|${PWD} " >> ~/.zsh_history_ext
Expand All @@ -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)
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
3 changes: 3 additions & 0 deletions preferences/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading