My .dotfiles
I keep this repository in $HOME/dotfiles
and symlink the necessary config files from the repository into $HOME
e.g.
ln -s $HOME/dotfiles/bashrc .bashrc
bashrc
bash configuration filebrew.sh
homebrew homebrew setup scriptBrewfile
homebrew bundle fileconfig.fish
fish configuration filefunctions.ps1
PowerShell functionsgitconfig
git configuration filegitignore_global
global gitignore filemacos
Script for setting up a new mac by Mathias Bynensprofile.ps1
PowerShell profile about_Profilessetup.ps1
setup for windowssetup.sh
setup for mactmux.conf
tmux configuration filevim.sh
vim plugins setup scriptvimrc
vim vim configuration filewindows.ps1
Script for setting up a new windows by jayharris
setup
setup script
-
Clone repo
cd $HOME git clone "https://github.com/avidit/dotfiles.git"
-
Run the setup script
cd $HOME/dotfiles ./setup.sh
cd $HOME\dotfiles .\setup.ps1
Or,
-
backup existing files and folders
mv "$HOME/$file" "$HOME/$file.bak" mv "$HOME/$folder" "$HOME/$folder.bak"
Rename-Item -Path "$HOME\$file" -NewName "$HOME\$file.bak" Rename-Item -Path "$HOME\$folder" -NewName "$HOME\$folder.bak"
-
run desired script(s)
sh "$HOME/dotfiles/brew.sh"
-
create symlinks for required file(s) and folder(s)
ln -s "$HOME/dotfiles/bashrc" "$HOME/.bashrc" ln -s "$HOME/dotfiles/config.fish" "$HOME/.config/fish/config.fish"
New-Item -ItemType SymbolicLink -Path $PROFILE.CurrentUserAllHosts -Target "$HOME\dotfiles\profile.ps1"