Skip to content

puigfp/dotfiles

Repository files navigation

dotfiles

cheatsheet

icloud drive folder

  • ~/Library/Mobile Documents/com~apple~CloudDocs/

sane macOS parameters

./defaults.sh

xcode commands line tools

  • install cli tools (C/C++ compiler and other things)

    xcode-select --install

brew

  • install brew: https://brew.sh/

  • setup completions: https://docs.brew.sh/Shell-Completion

  • install/upgrade all the things

    brew bundle --verbose
  • check which things are missing from the Brewfile

    brew bundle cleanup
  • actually remove those things

    brew bundle cleanup --force
  • figure where a package is in the dependency tree

    brew deps --tree --installed | less

zsh

  • add brew-installed zsh to standard shells:

    sudo sh -c "echo $(which zsh) >> /etc/shells"
  • change user shell

    chsh -s $(which zsh)

stow

  • simlink dotfiles dry run

    stow --simulate --verbose --target $HOME <folder>
  • simlimk dotfiles

    stow --verbose --target $HOME <folder>

submodules

  • clone repository, including submodules

    git clone --recurse-submodules
  • init submodules (useful when you forgot the --recurse-submodules when cloning)

    git submodule update --init --recursive
  • pull latest master of all submodules

    git submodule foreach git pull origin HEAD

iterm

visual studio code

  • backup extensions

    code --list-extensions | sort > vscode_extensions
  • restore extensions

    code --install-extension <extension>
    # or
    for ext in $(cat vscode_extensions); do code --install-extension $ext; done

emacs

major gotcha

The "railwaycat/emacsmacport/emacs-mac" brew formula comes both in a "classic" formula flavor and a cask one. Use the cask, it's the only one creating an Emacs.app folder in Applications/.

init doom emacs

doom install

when nothing works

rm -rf .emacs.d/.local/
doom install

About

My dotfiles (for macOS)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •