Last active
January 17, 2025 23:10
-
-
Save samyok/2bf66c28f63e9282c25448373081ae0f to your computer and use it in GitHub Desktop.
new mac setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# create ssh key | |
ssh-keygen | |
# sync ssh key with github | |
brew install gh | |
gh auth login | |
# if you want to add this key to other services: | |
ssh server | |
# on remote: | |
curl -s https://github.com/samyok.keys >> ~/.ssh/authorized_keys | |
sort -u ~/.ssh/authorized_keys -o ~/.ssh/authorized_keys | |
# brewfile gist url may be out of date: get the raw from | |
# https://gist.github.com/samyok/Brewfile | |
curl -s https://gist.githubusercontent.com/samyok/df1e31bf43b2452176ea1b9512c641af/raw/f502d6871e59587d6b15c27a059006cd772afe80/Brewfile >> ~/Brewfile | |
brew bundle install | |
# install dotfiles | |
gh repo clone samyok/dotconfig .config | |
gh repo clone samyok/dotfiles | |
cd dotfiles | |
stow fish | |
stow nvim | |
# install iterm2 profiles | |
# url may be out of date, get raw from https://gist.github.com/samyok/f35b6aad67192bbe082f5d0b3323ac23 | |
wget https://gist.githubusercontent.com/samyok/f35b6aad67192bbe082f5d0b3323ac23/raw/3042e113d3e51ed793b4f42fde16a48e2c1eb1b1/iterm-5k.json | |
# import profile thru gui | |
# add brew env to fish | |
echo >> /Users/samyok/.config/fish/config.fish | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/samyok/.config/fish/config.fish | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
# install omf | |
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish | |
# node | |
nvm install --lts | |
npm i -g yarn | |
# disable holding down a key to show accented characters: | |
defaults write -g ApplePressAndHoldEnabled -bool false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ghostty config: