Skip to content

Instantly share code, notes, and snippets.

@sturmenta
Last active Nov 17, 2021
Embed
What would you like to do?
mac m1- start configuration
defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock
  • show hide folders & files
defaults write com.apple.finder AppleShowAllFiles -bool YES && killall Finder
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

# auto suggestions config (add this to .zshrc)
plugins=(zsh-autosuggestions)
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
  • configure zsh powerlevel10k theme
  1. create file ~/.p10k.zsh and copy this inside
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k

# powerlevel10k theme config (add this to .zshrc)
themes=(powerlevel10k)
source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

# use brew from no-rosseta terminal (add this to .zshrc)
alias arch_r="arch -x86_64 $@"
alias brewr="arch_r /usr/local/bin/brew $@"
  • install nvm using rosetta terminal
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

# copy and paste line for line in terminal
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

nvm install node
  • install git
brewr install git

git config --global user.name "sturmenta"
git config --global user.email "sturmenta@gmail.com"

# create personal token from github and use when git ask for pass
sudo npm i -g yarn

Configure vscode from settings sync

Another programs

Screen Shot 2021-04-10 at 20 52 59

Bunch of programs to elimu-dev (optional)

https://gist.github.com/sturmenta/e5a2804e35244a7af9738dd228c8c6df

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