GithubHelp home page GithubHelp logo

arch-dots's Introduction

.dotfiles

This repository contains my Bash, ZSH, and Vim settings.

Some of the features include:

  • Nicely colored prompt for both Bash and ZSH.
  • Automatic project aliases
  • Lots of cool aliases
  • Ruby on Rails specific aliases
  • RVM and rbenv support
  • Vim configuration
  • ... and much more!

There is absolutely NO guarantee for this project to work on your machine. Only use this if you know what you are doing.

Installation

Prerequisites

Homebrew

Here's what I install on a clean OSX:

brew install ack imagemagick par readline wget \
  libyaml mysql zsh node sqlite memcached \
  postgresql tree openssl

Make sure to read the caveats of those packages to make them start up automatically when that makes sense.

I use rbenv and ruby-build for installing Ruby:

brew install rbenv ruby-build

dotfiles

To install the dotfiles:

git clone https://github.com/iain/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./script/install

This will create backups for anything you already have and add symlinks to these parts.

Git

Add and change these lines to ~/.dotfiles/config/personal.sh:

export GIT_AUTHOR_NAME="Your Name"
export GIT_AUTHOR_EMAIL="[email protected]"

export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
export GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL

See the chapter on personal configuration below for more information.

Customizing

iTerm2

In the iTerm2 General settings, check Load preferences from a user-defined folder or URL. Fill in the text field to point to /Users/your_name/.dotfiles/iterm2. You might need to restart iTerm2 after that.

Vim

Vim will automatically install itself when you start Vim for the first time.

Delete (or move) your ~/.vim directory to let it install.

Personal Configuration

You can put configuration options that are personal, like custom paths, and other environment variables in one of these files:

  • config/personal.sh (will be loaded in both Bash and ZSH)
  • config/personal.zsh (ZSH specific configuration)
  • config/personal.bash (Bash specific configuration)

Project aliases

This scripts adds aliases for your project directories, but you'll have to tell it where your projects can be found. There are however differences in ZSH and Bash syntax. Use the personal configuration files as mentioned above to set them.

For ZSH:

PROJECT_PARENT_DIRS+=("$HOME/Work")
PROJECT_PARENT_DIRS+=("$HOME/Personal")

For Bash:

PROJECT_PARENT_DIRS[0]="$HOME/Work"
PROJECT_PARENT_DIRS[0]="$HOME/Personal"

Add as many directories as you like.

Fonts

I'm using DejaVuSansMono as font. You can download it here.

Programmers can be very anal about fonts, so if you don't like it, feel free to use something different.

My DejaVuSansMono, including the powerline patch is included for convenience.

Credits

Thanks everybody who puts their dotfiles online. I copied a lot from practically every repository.

Feel free to use this or fork this. Additions are very welcome!

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.