Skip to content

Latest commit

 

History

History
129 lines (108 loc) · 4.64 KB

3-configuration.md

File metadata and controls

129 lines (108 loc) · 4.64 KB

Wiki - macOS Setup - Configuration

macos setup iterm folders

Here starts the fun stuff. We're starting with the dotfiles and default directories and configure the terminal.

Table of contents

  1. Home
  2. Configuration
  3. Preferences
  4. Applications
  5. Local Development
  6. Backup

Homebrew

Formulas:

  • bat - Clone of cat with syntax highlighting and Git integration.
  • curl - Get a file from an HTTP, HTTPS or FTP server.
  • diff-so-fancy - Good-lookin' diffs with diff-highlight and more.
  • dockutil - Command line utility for managing macOS dock items.
  • htop - Improved top (interactive process viewer).
  • mackup - Keep your application settings in sync.
  • mas - Command line interface for the Mac App Store.
  • speedtest-cli - Command line interface for testing internet bandwidth.
  • tldr - Collaborative cheatsheet for console commands.
  • trash - CLI tool that moves files or folder to the trash.
  • tree - Display directories as trees (with optional color/HTML output).
  • wget - Internet file retriever.
  • youtube-dl - Download videos from youtube.com or other video platforms.
brew install bat curl diff-so-fancy dockutil htop mackup mas speedtest-cli tldr trash tree wget youtube-dl

Shell

Oh My Zsh

  • Installation:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • Download custom theme and plugins:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k pull
  • Troubleshooting: fix permissions for Homebrew and Oh My Zsh:
sudo chown -R $(whoami) $(brew --prefix)/*
chmod 744 /usr/local/share/zsh

Vim (TODO)

# mkdir -p ~/.vim/pack/tpope/start
# cd ~/.vim/pack/tpope/start
# git clone https://tpope.io/vim/sensible.git
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Dotfiles

# cd ~/.dotfiles/src
# stow .
#stow . -t ~/TEMP/Home
stow -d ~/.dotfiles -t ~ src

# mv $HOME/.zshrc $HOME/.zshrc.backup

# ln -s $HOME/.dotfiles/src/.editorconfig $HOME/.editorconfig
# ln -s $HOME/.dotfiles/src/.gitattributes $HOME/.gitattributes
# ln -s $HOME/.dotfiles/src/.gitconfig $HOME/.gitconfig
# ln -s $HOME/.dotfiles/src/.gitignore $HOME/.gitignore
# ln -s $HOME/.dotfiles/src/.mackup.cfg $HOME/.mackup.cfg
# ln -s $HOME/.dotfiles/src/.my.cnf $HOME/.my.cnf
# ln -s $HOME/.dotfiles/src/.p10k.zsh $HOME/.p10k.zsh
# ln -s $HOME/.dotfiles/src/.vimrc $HOME/.vimrc
# ln -s $HOME/.dotfiles/src/.zshrc $HOME/.zshrc

# mkdir $HOME/.ssh
# ln -s $HOME/.dotfiles/ssh/config $HOME/.ssh/config

Home directories

mkdir $HOME/Desktop/Screenshots

mkdir $HOME/TEMP

mkdir $HOME/Projects
mkdir $HOME/Projects/laravel
mkdir $HOME/Projects/moodle
mkdir $HOME/Projects/containers
mkdir $HOME/Projects/blackhole
mkdir $HOME/Projects/[company]

Fonts

cp $HOME/.dotfiles/library/fonts/SourceCodePro+Powerline+Awesome+Regular.ttf /Library/Fonts/

Screenshots

Save screenshots to a folder on the desktop:

defaults write com.apple.screencapture location -string "${HOME}/Desktop/Screenshots"

Disable shadow in screenshots

defaults write com.apple.screencapture disable-shadow -bool true