Skip to content

avidit/dotfiles

Repository files navigation

Dotfiles

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

Index

  • bashrc bash configuration file
  • brew.sh homebrew homebrew setup script
  • Brewfile homebrew bundle file
  • config.fish fish configuration file
  • functions.ps1 PowerShell functions
  • gitconfig git configuration file
  • gitignore_global global gitignore file
  • macos Script for setting up a new mac by Mathias Bynens
  • profile.ps1 PowerShell profile about_Profiles
  • setup.ps1 setup for windows
  • setup.sh setup for mac
  • tmux.conf tmux configuration file
  • vim.sh vim plugins setup script
  • vimrc vim vim configuration file
  • windows.ps1 Script for setting up a new windows by jayharris

  • setup setup script

Setup

  • 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"