Skip to content

Instantly share code, notes, and snippets.

@jkot
Last active September 4, 2022 15:11
Show Gist options
  • Save jkot/75261b86387366852453 to your computer and use it in GitHub Desktop.
Save jkot/75261b86387366852453 to your computer and use it in GitHub Desktop.

Tiling Window Manager

Rectangle

Keys

Remapping

Enter in Finder, etc. Karabiner (used to be KeyRemap4MacBook)

Key Repeat Speed

defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)

The changes aren't applied until you log out and back in. KeyRepeat can't be set between 2 (30 ms) and 1 (15 ms) though. https://apple.stackexchange.com/questions/10467/how-to-increase-keyboard-key-repeat-rate-on-os-x

Terminal

iterm2 - just works (compared to e.g. alacritty that's not signed, doesn't have tabs, ...)

https://github.com/sorin-ionescu/prezto --> cleaner rewrite of oh-my-zsh ls colors - install coreutils with g prefix (default installation, i.e. without modifying PATH)

https://github.com/romkatv/powerlevel10k --> powerline with nice interactive configuration ( https://github.com/sindresorhus/pure )

iterm2 ls colors too dark -> iterm2 -> Preferences -> Profiles -> Colors -> Color Presets

"Operation not permitted" when searching with find

Enable full disk access for the terminal app in Preferences/Privacy and Security

Vim

https://github.com/vim-airline/vim-airline https://github.com/joshdick/onedark.vim

https://weibeld.net/terminals-and-shells/italics.html https://apple.stackexchange.com/questions/266333/how-to-show-italic-in-vim-in-iterm2

$ git clone https://github.com/powerline/fonts.git --depth=1
$ cd fonts
$ ./install.sh
$ cd ..
$ rm -rf fonts

Add to .vimrc: let g:airline_powerline_fonts = 1

MacVim vim-airline font: vim-airline/vim-airline#719

Change Shell to Bash

chsh -s /bin/bash

https://stackoverflow.com/questions/453236/how-to-set-my-default-shell-on-mac

https://stackoverflow.com/questions/10574684/where-to-place-path-variable-assertions-in-zsh

https://apple.stackexchange.com/questions/69223/how-to-replace-mac-os-x-utilities-with-gnu-core-utilities https://apple.stackexchange.com/questions/71119/benefit-of-using-macports-coreutils-instead-of-stock-os-x

Zsh

http://sourabhbajaj.com/mac-setup/iTerm/zsh.html

Bash Git Prompt

https://github.com/magicmonty/bash-git-prompt

export TERM="xterm-color"
export PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '

alias ls="ls -G"

Finder

Exclude email from search: -kind:mail

Apps

GPU Performance Monitoring

Activity Monitor - Window > GPU History image

sudo powermetrics --samplers gpu_power

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment