Skip to content

Instantly share code, notes, and snippets.

@cam8001
Last active August 20, 2024 01:16
Show Gist options
  • Save cam8001/555c49749fd9f695f1f4d21575e75dad to your computer and use it in GitHub Desktop.
Save cam8001/555c49749fd9f695f1f4d21575e75dad to your computer and use it in GitHub Desktop.
New Mac setup
brew install --cask visual-studio-code
brew install --cask iterm2
brew install --cask alfred
brew install --cask istat-menus
brew install --cask hiddenbar
# Shell
echo 'alias l="ls -lashF"' >> ~/.zshrc
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# Install powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k &&
sed -i '' 's/robbyrussell/powerlevel10k\/powerlevel10k/' ~/.zshrc && . ~/.zshrc
# Add zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i '' 's#plugins=(#plugins=(zsh-autosuggestions #' ~/.zshrc
# Add fast-syntax-highlighting
git clone https://github.com/z-shell/F-Sy-H.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/F-Sy-H
sed -i '' 's#plugins=(#plugins=(F-Sy-H #' ~/.zshrc
# Update the standard oh-my-zsh .zshrc to include the local path
sed -i '' 's/# export PATH/export PATH/g' ~/.zshrc
brew install ripgrep fzf bat
brew install nvim
echo 'alias vim=nvim' >> ~/.zshrc
source <(fzf --zsh)
# Add git-number
mkdir ~/bin
curl https://raw.githubusercontent.com/holygeek/git-number/master/git-id > ~/bin/git-id && chmod 0755 ~/bin/git-id
curl https://raw.githubusercontent.com/holygeek/git-number/master/git-list > ~/bin/git-list && chmod 0755 ~/bin/git-list
curl https://raw.githubusercontent.com/holygeek/git-number/master/git-number > ~/bin/git-number && chmod 0755 ~/bin/git-number
echo "alias gn='git-number'" >> ~/.zshrc
# Allow fast pastes
sed -i '' 's/# DISABLE_MAGIC/DISABLE_MAGIC/' ~/.zshrc
. ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment