Skip to content

Instantly share code, notes, and snippets.

@saada
Last active July 30, 2022 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saada/a9bb1d01ad0229bb0c3b03cf9120f246 to your computer and use it in GitHub Desktop.
Save saada/a9bb1d01ad0229bb0c3b03cf9120f246 to your computer and use it in GitHub Desktop.
new mac setup
# homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install --cask brooklyn
brew install watch
brew install kubectl
brew install k9s
brew install ncdu
brew install derailed/popeye/popeye
brew install bat
brew install fd
brew install fzf
brew install kind
brew install kubectx
brew install helm
brew install kustomize
brew install kapp
brew install pre-commit
brew install tilt-dev/tap/tilt
brew install coreutils
brew install git
# vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.
hubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "
syntax on
set number
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'mg979/vim-visual-multi', {'branch': 'master'}
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'airblade/vim-gitgutter'
call plug#end()
nnoremap <C-p> :Files<Cr>
" > ~/.vimrc
# asdf
brew install asdf
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin-add kops https://github.com/Antiarchitect/asdf-kops.git
asdf plugin-add boundary https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin-add consul https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin-add nomad https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin-add packer https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin-add sentinel https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin-add serf https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin-add terraform https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin-add vault https://github.com/asdf-community/asdf-hashicorp.git
asdf plugin-add waypoint https://github.com/asdf-community/asdf-hashicorp.git
helm plugin install https://github.com/databus23/helm-diff
# MANUALLY
## Install Docker https://docs.docker.com/get-docker/
# fish
cat <<EOF > ~/.config/fish/config.fish
set -gx PATH $PATH "/usr/local/opt/coreutils/libexec/gnubin:/Users/saada/.asdf/shims:/usr/local/opt/asdf/libexec/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin"
set -gx PATH $PATH $HOME/.krew/bin
set -gx PATH /opt/homebrew/bin $PATH
export AWS_SDK_LOAD_CONFIG=true
source /usr/local/opt/asdf/libexec/asdf.fish
# launch starship 💫 🚀
set -x STARSHIP_CONFIG ~/.config/starship.toml
set -g fish_escape_delay_ms 300
starship init fish | source
# aliases
alias k=kubectl
alias klf="kubectl logs --tail 100 -f"
alias k9s="k9s --context . --headless --crumbsless"
EOF
cat <<EOF > ~/.config/starship.toml
add_newline = false
[package]
disabled = true
[kubernetes]
disabled=false
[cmd_duration]
min_time = 100
[aws]
disabled=true
[nodejs]
disabled=true
[python]
disabled=true
EOF
brew install fish
fish
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
brew install starship
fisher install PatrickF1/fzf.fish
fisher install jhillyerd/plugin-git
fisher install evanlucas/fish-kubectl-completions
# git
git config --global alias.up 'pull --rebase --autostash'
git config --global --add --bool push.autoSetupRemote true
# configure Google Drive to backup Documents, Desktop, Pictures, ~/.local/share/fish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment