Skip to content

Instantly share code, notes, and snippets.

@mate-h
Last active February 4, 2023 21:39
Show Gist options
  • Save mate-h/c628c39f4953350fe6b2f1a044f97cda to your computer and use it in GitHub Desktop.
Save mate-h/c628c39f4953350fe6b2f1a044f97cda to your computer and use it in GitHub Desktop.
Set up new OSX environment
# download and run this script
# /bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/mate-h/c628c39f4953350fe6b2f1a044f97cda/raw/f45dca3e04f386529117c34481c5702a0ef623b5/env.sh)"

# shell script to set up new environment

# install chrome
wget https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg

# vscode at https://code.visualstudio.com/

# brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# alacritty with ligatures
git clone https://github.com/zenixls2/alacritty.git
cd alacritty
git checkout ligature
cargo build --release

# download alacritty yml
wget https://gist.githubusercontent.com/mate-h/...

# fish
brew install fish

# fisher
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher

# https://github.com/pure-fish/pure
fisher install pure-fish/pure

# change default shell
chsh -s /usr/bin/fish

# asdf https://asdf-vm.com/guide/getting-started.html
brew install coreutils curl git

brew install asdf
echo -e "\nsource "(brew --prefix asdf)"/libexec/asdf.fish" >> ~/.config/fish/config.fish

# python, nodejs
asdf plugin add python
asdf plugin add nodejs

# install python, nodejs and set as global in .tool-versions

# download and set ligaturized font for VSCode and for alacritty
# https://github.com/kube/sf-mono-ligaturized

VSCode settings

{
    "editor.inlineSuggest.enabled": true,
    "workbench.colorTheme": "One Dark Pro",
    "editor.fontFamily": "'SF Mono', 'Fira Code', monospace",
    "editor.fontLigatures": true
}

GPG Key signing https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key

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