Last active
July 30, 2022 16:08
-
-
Save saada/a9bb1d01ad0229bb0c3b03cf9120f246 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
# 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