Coder Social home page Coder Social logo

dotfiles's Introduction

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. 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.

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

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:

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.

Ansible host manifest

A minimal Ansible hosts file for your local system looks like this.

[all]
localhost

A 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.

dotfiles's People

Contributors

tangledhelix avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.