-
Shell: zsh
- Theme: ohmyzsh
- Shell prompt: Starship
- Syntax highlighting: zsh-syntax-highlighting
-
Terminal emulator: iTerm2
For natural text navigation, go to Preferences. Profiles > Keys > Key Mappings > Presets and click Natural Text Editing
-
Fonts: FiraCode Nerd Font
-
Package manager: brew
-
Git - Install with Xcode
-
CMake
brew install cmake
-
Git commit signing using GPG:
# Assumes homebrew and existing key-pair brew install pinentry-mac # Get the secret key value gpg2 --list-secret-keys | grep ^sec git config --global user.signingkey {secret-value} git config --global gpg.program $(which gpg) # Sign everything by default git config --global commit.gpgsign true echo "no-tty" >> ~/.gnupg/gpg.conf echo $(which pinentry-mac) >> ~/.gnupg/gpg-agent.conf
Taken from Signing Commits in Git. To use with IntelliJ, see here. GitHub docs here.
-
OpenSSL 3.*
-
AWS
brew install awscli
~/.aws/credentials
[some-profile-name]
~/.aws/config
[default] region = ap-southeast-1
Set default profile in the
export AWS_PROFILE=...
Existing | Replacement |
---|---|
cat |
bat |
vim |
nvim (Neovim) |
(?) | tldr |
(Finder) | broot |
ls |
lsd |
grep |
ripgrep |
jq |
jless |
(?) | yq |
find |
fd |
(search) | fzf |
nvim
config (~/.config/nvim/init.vim
):
set number
bat
config (~/.config/bat/config
, found from bat --config-file
):
# No need all those line numbers
--style plain
~/.config/fish/config.fish
for fish
fish:
starship init fish | source
set -gx PATH "$HOME/.cargo/bin" $PATH
set PATH $HOME/.jenv/bin $PATH
status --is-interactive; and jenv init - | source
alias g=git
Colima
brew install colima
brew install docker
brew install docker-compose
https://formulae.brew.sh/formula/docker-compose https://stackoverflow.com/a/74413229/4570466
Docker Desktop
Java SDKs are stored in ~/Library/Java/JavaVirtualMachines
or /Library/Java/JavaVirtualMachines
.
/usr/bin/java
looks for JAVA_HOME
. Otherwise it will look for the JDK with the highest version.
Download different JDKs:
- Manually
- via IntelliJ
brew
Utils
/usr/libexec/java_home
to get the list of java versions
Env manager
- Set
JAVA_HOME
environment variable - jenv
Auto switch to env based on proj
- For fish, refer to https://github.com/jenv/jenv.
https://www.rust-lang.org/tools/install
Download node via NVM (Homebrew)
Auto switch to env based on proj with this SO post.
Poetry
brew install poetry
and hope that it's in your PATH.
Anaconda
- Install anaconda
conda create <env-name> python=3.10
conda install jupyter ipython nb_conda_kernels
Add crons at by runinng the crontab -e
command.
29 9 * * * open -a "Google Chrome" "???"
0 * * * * osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title" sound name "Frog"'
~/.gitconfig
[alias]
f = fetch
co = checkout
br = branch
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
[init]
defaultBranch = main
[push]
autoSetupRemote = true # no more git push -u origin main stuff
- Rectangle
- Unsplash
- Maccy
- Postman
- Proxyman
- TablePlus
- Cloudflare Warp
- VS Code
- IntelliJ
zbar
,qrencode
- 1Password
coreutils
(it has many stuff likebasenc
)