Code Monkey home page Code Monkey logo

dotfiles's Introduction

My Dotfiles Repositiory

This is my personal dotfiles repository, consisting of various configuration files that I share between different Linux and Mac systems. It mostly contains vim and Sublime Text specific settings for now as well as custom profiles (i.e. color schemes) for the Mac Terminal and iTerm2 apps.

Installation

I'm using a bare git repository to store my dotfiles, as first described by StreakyCobra on Hacker News and later documented by Nicola Paolucci for Bitbucket.

When adding the repo to a new machine, I clone to a directory named .dotfiles in my home directory:

git clone --bare https://github.com/jpitoniak/dotfiles $HOME/.dotfiles

Then I set up an alias called "dotfiles" in my shell configuration file(s) (I used different shells on different systems because...reasons...) so that I can easily make commits against the repo with a memorable command:

# For Bash ($HOME/.bashrc) or Zshell $HOME/.zshrc)

alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

# For CShell ($HOME/.cshrc)

alias dotfiles '/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

Once you do that, you'll want to source your config to make the alias available, for example:

source $HOME/.bashrc

Now the dotfiles "command" should be available and I can check out the repo:

dotfiles checkout

To keep the dotfiles status command's output clean, and to keep it running fast, I also add this setting to show only my tracked files:

dotfiles config --local stauts.showUntrackedFiles no

After Checkout

Vim

The .vimrc file will be autmatically loaded when starting vim, but plugins are not installed automatically. To do that, start vim, press <Esc> and then type :PlugInstall.

Sublime Text

When running Sublime Text for the first time on a new system, open the command palet and select "Install Package Control." Once installed, Package Control will automatically download and install all of the packages specified the "Package Control.sublime-settings" file each time the app is opened.

Mac Terminal.app

A custom color scheme based on Sublime Text's Mariana theme can be found in the extras/Terminal directory. It can be imported by going to Terminal > Settings..., clicking the menu button at the bottom of the Profiles tab, and chosing Import...

Mac iTerm2

A similar color theme for iTerm2 is available in the extras/iTerm2. To import go to iTerm2 > Settings... and then click on Other Actions... > Import JSON Profiles... on the Profiles tab. More to come...

dotfiles's People

Contributors

jpitoniak avatar jrpisd avatar

Watchers

 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.