Skip to content

prests/.dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.dotfiles

This repository contains all sorts of .dotfiles to setup my developer experience

Setup

  1. Install the following non-neovim dependencies:
command -v brew &> /dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
command -v nvm &> /dev/null || brew install nvm
command -v stow &> /dev/null || brew install stow
command -v git &> /dev/null || brew install git
brew install ripgrep
curl https://sh.rustup.rs -sSf | sh

Install Golang

  1. Install the following dependencies:
brew install --cask iterm2
rm ~/.zshrc
stow -t ~/ -d . .
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # The .zshrc file may get overwritten and moved to ~/.zshrc.pre-oh-my-zsh
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc
source ~/.zshrc
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
source ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
source ~/.zshrc
command -v nvim &> /dev/null || brew install neovim
  1. Customizing Iterm2
  • Set theme in settings > profile > colors and import preset from home directory
  • Set global keybinding to ⌘ + j in settings > keys > hotkeys > create a dedicated hotkey window...
  1. Apply Changes

Run the following script from the root of the project (assuming repo is cloned to home directory):

stow -t ~/ -d . .

Custom Commands

Clean Branches

The clean-branches command will delete any local branches that have already been merged onto main or master. It comes with an optional -d -m x flag to also delete any branches older than x months.

Example:

clean-branches # default delete command (will only delete branches merged directly onto main/master)

clean-branches -d -m 2 # delete all branches merged onto main/master and any branch 2 months or older

About

All of my mac dev setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published