https://github.com/dotslash/dotfiles
Mediocre dotfiles with a nice setup script
https://github.com/dotslash/dotfiles
dotfiles python-script
Last synced: 9 months ago
JSON representation
Mediocre dotfiles with a nice setup script
- Host: GitHub
- URL: https://github.com/dotslash/dotfiles
- Owner: dotslash
- License: mit
- Created: 2020-02-23T21:24:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T18:42:08.000Z (over 5 years ago)
- Last Synced: 2025-06-02T01:09:14.553Z (9 months ago)
- Topics: dotfiles, python-script
- Language: Shell
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotfiles
Supports the config files for bashrc (or bash_profile), gitconfig, gitignore and vimrc.
### Usage
1. Do a dry run to see if things make sense.
```sh
> python setup.py dry
Config mappings to set:
{'/Users/dotslash/dotfiles/bashrc.sh': '~/.bash_profile',
'/Users/dotslash/dotfiles/gitconfig': '~/.gitconfig',
'/Users/dotslash/dotfiles/gitignore': '~/.gitignore',
'/Users/dotslash/dotfiles/vimrc': '~/.vimrc'}
Backed up /Users/dotslash/.vimrc to /Users/dotslash/.vimrc_1582496367.598279
Backed up /Users/dotslash/.bash_profile to /Users/dotslash/.bash_profile_1582496367.598279
Backed up /Users/dotslash/.gitignore to /Users/dotslash/.gitignore_1582496367.598279
Backed up /Users/dotslash/.gitconfig to /Users/dotslash/.gitconfig_1582496367.598279
Synlinked /Users/dotslash/.vimrc to /Users/dotslash/dotfiles/vimrc
Synlinked /Users/dotslash/.bash_profile to /Users/dotslash/dotfiles/bashrc.sh
Synlinked /Users/dotslash/.gitignore to /Users/dotslash/dotfiles/gitignore
Synlinked /Users/dotslash/.gitconfig to /Users/dotslash/dotfiles/gitconfig
====================
If you don't like this outcome, run the following in bash to undo:
rsync /Users/dotslash/.vimrc_1582496367.598279 /Users/dotslash/.vimrc && rsync /Users/dotslash/.bash_profile_1582496367.598279 /Users/dotslash/.bash_profile && rsync /Users/dotslash/.gitignore_1582496367.598279 /Users/dotslash/.gitignore && rsync /Users/dotslash/.gitconfig_1582496367.598279 /Users/dotslash/.gitconfig
```
2. Run `python setup.py`.
- If you don't like the desired outcome, run the provided bash command in the output to undo.
- Why `rsync`? : Because I symlink from the git repo to appropriate dotfiles, doing a mv/cp might not work as you think. It will change the files in git repo as well.
- Why `ln -s` and not `cp` from the git repo? : Because I want to make sure changes in the git repo will reflect into the dot files.
- TODO(dotslash): Consider adding a way to sever the link between the git repo the dotfiles.