Skip to content

davisssamuel/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

157 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

To use these dotfiles, you need git and stow installed.

brew install git stow

Installation

First, backup (recommended) or remove your current dotfiles, e.g. backing up .zshrc.

mv ~/.zshrc ~/.zshrc.bak

Next, clone this repo to your $HOME directory and cd into the dotfiles directory.

git clone --recurse-submodules https://github.com/davisssamuel/dotfiles.git && cd ~/dotfiles

Finally, use Stow to create symlinks to these dotfiles.

stow .

NOTE: if you have dotfiles that were not backed-up or removed, Stow may not create symlinks and throw a conflict error. Use the adopt flag to override this repo's dotfiles with your own.

stow --adopt .

Options

If you are using bash and want the same prompt, add the following to your .bashrc.

if [ ! -f $HOME/.git-prompt.sh ]; then
    curl https://raw.githubusercontent.com/git/git/refs/heads/master/contrib/completion/git-prompt.sh > $HOME/.git-prompt.sh
fi
source $HOME/.git-prompt.sh
export GIT_PS1_SHOWCOLORHINTS=true
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_UNTRACKEDFILES=true
export GIT_PS1_STATESEPARATOR=''
PS1=$'\n''\u: \e[34m\W$(__git_ps1 " \e[32m(%s\e[32m)") \e[39m\$ '

About

My dotfiles managed with Stow

Topics

Resources

Stars

Watchers

Forks