OSX from Scratch
Publish on 2023-12-21
My personal workflow, use macos the unix way.

Keybinding

brew install karabiner-elements

Install karabiner element and grant the requested permission.

Left Shift for Switching Input Sources

karabiner://karabiner/assets/complex_modifications/import?url=https://idawnlight.com/assets/karabiner_shift.json

Open the url above. Then enable the shifting way you want, try not to forget cancel the function that use Tab as input sources switcher.

Option as alt (not recommand)

https://github.com/alacritty/alacritty/issues/4048

Search “Map Option to soft-meta for Alacritty” on https://ke-complex-modifications.pqrs.org/

Lang

Go

Follow official installation - https://go.dev/doc/install.

My directory would be /Users/$USER/Library/.

Some modification on config according to your installation directory. Below is my config, you can make your own.

go env -w GOPATH=/Users/$USER/Library/go
go env -w GOMODCACHE=/Users/$USER/Library/go/pkg/mod
go env -w GO111MODULE=auto

Python

conda, even miniconda is heavy, pyenv is light-weight and straight-forward.

conda is easier, however, make your own choice. I prefer pyenv.

brew install pyenv
brew install pyenv-virtualenv

pyenv install 3.12.0
pyenv global 3.12.0
# pyenv virtualenv 3.12.0 <COSTUM_NAME>
# pyenv global <COSTUM_NAME>

Javascript

use fnm command line tool

Rust

use rustup

# config for rustfmt, i use tab_spaces = 2 
ln -s ~/.config/rustfmt/ /Users/humborn/Library/Application\ Support/rustfmt

Main

plz refer to my dotfile.

© 2024 humbornjo :: based on 
nobloger  ::  rss