Last active
May 29, 2022 02:06
-
-
Save cam8001/555c49749fd9f695f1f4d21575e75dad to your computer and use it in GitHub Desktop.
New Mac setup
This file contains 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
brew install --cask visual-studio-code | |
brew install --cask iterm2 | |
brew install --cask alfred | |
brew install --cask istatmenus | |
brew install --cask hiddenbar | |
# Shell | |
echo 'alias l="ls -lashF"' >> ~/.zshrc | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | |
# Install oh-my-zsh | |
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 && | |
# 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/zdharma/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting | |
sed -i '' 's#plugins=(#plugins=(fast-syntax-highlighting #' ~/.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 | |
# Add git-number | |
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