MartinAskestad / dotfiles

My settings for different programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dot-files

Clone repo to new machine

  • Add the following to your powershell-profile
    Function Get-GitDotfiles {
    & git --git-dir=$HOME\.dotfiles --work-tree=$HOME $args
    }
    New-Alias -Name dot -Value Get-GitDotfiles -Force -Option AllScope
    Or this to your .bashrc
    alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
  • Clone repo into a bare repository.
    git clone https://github.com/MartinAskestad/dotfiles.git --bare $HOME\.dotfiles --recurse-submodules
  • Set the flag showUntrackedFiles to no on this specific repo
dot config --local status.showUntrackedFiles no
dot checkout
dot submodule init
dot submodule update

To use the new repo,

dot status
dot add vimfiles\vimrc
dot commit -m "Update vimrc'
dot push

Add git submodules for vim-plugins

To add a submodule

dot submodule add --depth 1 <remote_url> <destination_folder>
dot commit -m "Added submodule to project"
dot push

Update all submodules

dot submodule update --init --recursive

Remove submodule

dot submodule deinit <submodule>
dot rm <submodule>

About

My settings for different programs


Languages

Language:Vim Script 88.9%Language:PowerShell 10.6%Language:Batchfile 0.5%