Skip to content

ArtFlag/reinstall-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reinstall MacOS

Install

  1. Download the repo to your computer and unpack it.

  2. From the root of the folder, run:

    sh ./install.sh
  3. Add the following aliases to ~/.zshrc:

    eval "$(starship init zsh)"
    eval "$(zoxide init zsh)"
    export ZSH="$HOME/.oh-my-zsh"
    plugins=(git vi-mode)
    source $ZSH/oh-my-zsh.sh
    source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
    source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
    
    export HOMEBREW_AUTO_UPDATE_SECS="100400"
    export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
    export REPOS="${HOME}/repos"
    export PATH="/usr/local/opt/openjdk/bin:$PATH"
    export PATH="/usr/local/sbin:$PATH"
    export PATH="/Users/arthur/:$PATH"
    export REPOS="${HOME}/repos"
    export PATH_DOCS="${REPOS}/docs"
    export VALE_CONFIG_PATH="${PATH_DOCS}/.vale.ini"
    export VALE_STYLES_PATH="${PATH_DOCS}/_vale/Docker"
    export PATH_SERVICE="${REPOS}/service"
    export PATH_DOCS="${REPOS}/docs"
    
    ## Generic
    alias gcmu='gcm && gl'
    alias gmu='gcm && gl && gsw -'
    alias opr='gh pr create'
    alias spr='gh pr view --web'
    #alias ls='ls -GFh'
    #alias ll='ls -lsaGFh'
    alias ll='eza -la --icons --group-directories-first --no-permissions --no-user -s extension'
    alias clear_history='echo "" > ~/.zsh_history & exec $SHELL -l'
    alias check='brew update && echo "\n\nAPPS:" && brew outdated --cask --greedy && echo "\n\nPACKAGES:" && brew outdated && brew cleanup'
    # alias setup-fork='git remote add upstream (url) && git remote set-url --push upstream no_pushing'
    alias update-fork='git fetch upstream && git switch main && git rebase upstream/main && git push'
    
    ## Docs repo aliases
    alias ys='yarn start'
    alias yb='yarn build'
    alias yss='yarn serve'
    alias rd='cd ${PATH_DOCS}'
    alias to='cd ${PATH_SERVICE}'
    alias toc='code ${PATH_SERVICE}'
    alias rdc='code ${PATH_DOCS}'
    alias rec='code ${REPOS}/recipes'
    alias opr='gh pr create'
    alias spr='gh pr view --web'
    alias vr='gh repo view --web'
    alias update_fork='git fetch upstream && git checkout main && git rebase upstream/main && git push'
    alias setGitUser='git config user.name "ArtFlag" && git config user.email "[email protected]"'
  4. Work.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published