Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinjasaur/dotfiles
there's no place like $HOME
https://github.com/pinjasaur/dotfiles
bash-profile bashrc dotfiles gitconfig inputrc tmux-conf vimrc
Last synced: about 2 months ago
JSON representation
there's no place like $HOME
- Host: GitHub
- URL: https://github.com/pinjasaur/dotfiles
- Owner: Pinjasaur
- Created: 2017-05-16T05:31:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-14T04:18:52.000Z (6 months ago)
- Last Synced: 2024-08-14T22:01:17.517Z (5 months ago)
- Topics: bash-profile, bashrc, dotfiles, gitconfig, inputrc, tmux-conf, vimrc
- Language: Shell
- Homepage: https://uly.io/dotfiles
- Size: 96.7 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
there's no place like $HOME
## Setup
This is all inspired & based upon https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/.
From scratch (make sure Bash & Git are up to date firstโlooking at you macOS defaults ๐):
- Go $HOME: `cd ~`
- Clone repo:
- HTTPS: `git clone --bare https://github.com/Pinjasaur/dotfiles $HOME/.cfg`
- SSH: `git clone --bare [email protected]:Pinjasaur/dotfiles.git $HOME/.cfg`
- Add `cfg` alias: `alias cfg='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'`
- Make backup directory: `mkdir -p .cfg-backup`
- Checkout dotfiles: `cfg checkout`
- If conflicts: `cfg checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .cfg-backup/{}`
- Re-checkout: `cfg checkout`
- Don't show untracked: `cfg config status.showUntrackedFiles no`
- Update submodules: `cfg submodule update --init --recursive`
- Create `.bash.local` & `.gitconfig.local` [from here](https://gist.github.com/Pinjasaur/d058460e2c474054e655f86ad511c6a1) (sorry, they're for my ๐ only)### macOS specifics
- `git` may be `/usr/local/bin/git`, `/opt/homebrew/bin/git`, etc
- `brew install reattach-to-user-namespace`
- `set-option -g default-command "reattach-to-user-namespace -l $SHELL"` in `.tmux.conf.local`### Submodule maintenance
- Pull in submodule changes: `cfg submodule update --init --recursive`
- Update submodules to latest: `cfg submodule update --remote --merge`
- Check submodule status: `cfg submodule status --recursive`## Customizations
Create a `.bash.local` for setting up any shell-specic settings (aliases, functions,
exports, etc.).There are also local configs for Vim (`.vimrc.local`) and tmux
(`.tmux.conf.local`) where you can place custom local settings.## Noteworthy
### PuTTY
May need to change settings to get 256 colors.
- PuTTY: Connection > Data > Terminal-type `xterm-256color`
## `ack`nowledgements
Tooling and configuration inspired by:
- https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
- https://github.com/mathiasbynens/dotfiles
- https://github.com/necolas/dotfiles
- https://github.com/oxalorg/dotfiles
- https://github.com/mislav/dotfiles
- https://github.com/thoughtbot/dotfiles
- https://github.com/sdball/dotfiles
- https://github.com/jimeh/dotfiles
- https://github.com/csswizardry/dotfiles
- https://github.com/paulirish/dotfiles## License
[MIT](https://pinjasaur.mit-license.org/2017).