https://github.com/tangledhelix/dotfiles
My dotfiles
https://github.com/tangledhelix/dotfiles
ansible dotfiles zsh
Last synced: 17 days ago
JSON representation
My dotfiles
- Host: GitHub
- URL: https://github.com/tangledhelix/dotfiles
- Owner: tangledhelix
- Created: 2010-10-08T18:17:37.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T07:24:44.000Z (5 months ago)
- Last Synced: 2025-04-03T10:12:42.024Z (26 days ago)
- Language: Perl
- Homepage:
- Size: 2.24 MB
- Stars: 268
- Watchers: 22
- Forks: 65
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
This repository contains my personal dotfiles, which I use on unix systems of
varying flavors, and on my Macs. They are published here because I occasionally
want to share them or use them as examples, and this is an easy way to do so.
Feel free to use anything you find here.Note however, that I do not make any particular effort to make this easy for
others to use. I randomly move things around, add and remove Vim bundles,
according to my needs. If you want to use these dotfiles, I would definitely
suggest forking them to your own repo so you can selectively merge changes as
you see fit. YMMV.# Requirements
I use Ansible to deploy my shell files, that's just about the only requirement.
If you want to use my Vim module updater, that's written in Python 3.# Compatibility
I am a Zsh user. This repo goes in conjunction with
[Oh My Zsh](https://ohmyz.sh). It'll work fine if you use Bash or another
shell, it just won't do anything to set those shells up.I'm a Vim user. If you use Emacs or something else, same as with Zsh...
not a problem, but you won't get much Emacs functionality from these dotfiles.I use this setup with macOS, and Linux (RHEL, CentOS, Debian, Ubuntu).
Some parts of the Zsh and Vim configs may assume you have 256 color support in
your terminal. If you are using Apple Terminal before OS X Lion, you don't. Try
[iTerm2][] instead.[iterm2]: http://sites.google.com/site/iterm2home/
I have written two blog posts on the subject of iTerm and iTerm2. Give them
a read; color support is only one of several good reasons to switch.[iTerm > Terminal](http://tangledhelix.com/blog/2010/11/20/iterm-terminal/)
[iTerm2 > iTerm](http://tangledhelix.com/blog/2010/12/06/iterm2-iterm/)
# Installation
I use Ansible to deploy my dotfiles. This setup requires an inventory file.
That is not present in this repository as it's specific to me. See Ansible's
documentation for info about the format of the inventory file. (There is more
than one available format.) I keep my inventory files in the `inventory/`
directory, and the default paths is assumed to be `inventory/hosts`.## Git setup
I use a file `vars/gituser.yml` to define the .gitconfig `user.name` and
`user.email` settings. That's so I can have a different value on my work
laptop and personal laptop. This file is required, but isn't tracked in
git. It looks like this:```yaml
gituser_name: "John Doe"
gituser_email: "[email protected]"
```## Vim
To install or update the Vim bundles, use the `update_vim.py` script. The list
of Vim bundles is defined in that script. If you modify the list, you'll want
to do an update. This will refresh existing modules, install new ones, and
clean out old ones no longer in the list../update_vim.py
Note this will just update the repository copy. To install them, use the
Ansible playbook. Anything in the bundle directory will be installed on the
target.I have an entirely separate repo for my [Neovim configuration](https://github.com/tangledhelix/init.lua).
## Ansible host manifest
A minimal Ansible hosts file for your local system looks like this.
[all]
localhostA typical Ansible deploy to localhost looks something like this.
ansible-playbook -K -i inventory/hosts -l localhost main.yml
I don't want to write yet another Ansible tutorial so if you want to know more
about Ansible or playbooks, you can look up Ansible's documentation for those
things.