https://github.com/jameswalmsley/dotfiles
Just my dotfiles.
https://github.com/jameswalmsley/dotfiles
Last synced: about 1 month ago
JSON representation
Just my dotfiles.
- Host: GitHub
- URL: https://github.com/jameswalmsley/dotfiles
- Owner: jameswalmsley
- Created: 2018-12-24T21:31:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-27T10:38:06.000Z (about 2 months ago)
- Last Synced: 2025-03-27T11:36:14.073Z (about 2 months ago)
- Language: Shell
- Homepage:
- Size: 14.1 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# James' Dotfiles
# First-time Install
```bash
export GIT_WORK_TREE=~/
export GIT_DIR=~/.dot-files.git
mkdir -p ~/.dot-files.git
git init
git remote add origin https://github.com/jameswalmsley/dotfiles.git
git fetch
git checkout master# Add --force if you have untracked files that would be overwritten.
# Backup first!# git checkout master -f
```
Restart bash and login fresh.
# Usage
## Git
You can now access the dot-file git repository from anywhere using the
h command:```
h git pull
h git status
hs
h git add .bashrc
h git commit
h git push
```This also works in fish.
## SSH
You can sync your ssh key to other hosts authorized_keys file:
```bash
# Bash only.
hkey user@hostname
```## Sync Dotfiles.
You can install to another host (use hkey first)..
```bash
# Bash only.
hinit user@hostname
```And pull in files for another host.
```bash
# Bash only.
hsync user@hostname
```