Last active
April 28, 2023 04:00
-
-
Save caocuong2404/965a3f26dd1295459e46b22a54b8f2f1 to your computer and use it in GitHub Desktop.
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
# make dock faster | |
defaults write com.apple.dock autohide-delay -float 0; killall Dock | |
# install brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
(echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> ~/.zshrc | |
zsh | |
brew update && brew upgrade | |
# install some packages | |
echo " | |
pyenv | |
htop | |
starship | |
thefuck | |
nvm | |
zsh-autosuggestions | |
" >> packages.txt | |
brew install $(<packages.txt) | |
echo 'eval "$(starship init zsh)"' >> ~/.zshrc | |
mkdir ~/.nvm | |
echo ' | |
# thefuck | |
eval $(thefuck --alias) | |
# starship | |
eval "$(starship init zsh)" | |
# zsh-autosuggestions | |
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh | |
# nvm | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm | |
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion | |
' >> ~/.zshrc | |
zsh | |
# font | |
# https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/Hack.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment