Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martinaskestad/dotfiles
My settings for different programs
https://github.com/martinaskestad/dotfiles
Last synced: 1 day ago
JSON representation
My settings for different programs
- Host: GitHub
- URL: https://github.com/martinaskestad/dotfiles
- Owner: MartinAskestad
- Created: 2022-01-15T07:39:56.000Z (almost 3 years ago)
- Default Branch: august-2023
- Last Pushed: 2024-04-28T05:15:48.000Z (8 months ago)
- Last Synced: 2024-11-08T03:36:44.199Z (about 2 months ago)
- Language: Vim Script
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dot-files
## Clone repo to new machine
- Add the following to your powershell-profile
```powershell
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`
```bash
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
```
- Clone repo into a [bare](http://www.saintsjd.com/2011/01/what-is-a-bare-git-repository/) repository.
```powershell
git clone https://github.com/MartinAskestad/dotfiles.git --bare $HOME\.dotfiles --recurse-submodules
```
- Set the flag `showUntrackedFiles` to no on this specific repo```powershell
dot config --local status.showUntrackedFiles no
dot checkout
dot submodule init
dot submodule update
```To use the new repo,
```powershell
dot status
dot add vimfiles\vimrc
dot commit -m "Update vimrc'
dot push
```## Add git submodules for vim-plugins
To add a submodule
```powershell
dot submodule add --depth 1
dot commit -m "Added submodule to project"
dot push
```## Update all submodules
```powershell
dot submodule update --init --recursive
```## Remove submodule
```powershell
dot submodule deinit
dot rm
```