GithubHelp home page GithubHelp logo

kpthomas / dotfiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amarshall/dotfiles

0.0 2.0 0.0 633 KB

This is my terminal and vim configuration that builds on those that came before me. Used to scratch my itch for bash scripting. Mostly but not entirely general purpose.

License: MIT License

Ruby 2.48% Shell 9.07% Vim Script 88.17% Clojure 0.27%

dotfiles's Introduction

Dot Files

This is my terminal and vim configuration that builds on those that came before me. Used to scratch my itch for bash scripting. Mostly but not entirely general purpose.

Installation

  • Run ./install.sh

Environment

Configuration exists to target

  • OSs: Run on OS X (+ Homebrew). Portable to FreeBSD, & Ubuntu Linux
  • Shell: Primarily Zsh, but with Bash configuration
  • Languages: Primarily targeting for Ruby and Node.js development
  • Editor: Vim
  • VCS: Git

Customizing

Bash, Zsh, & Vim all support "localrc" files in the home directory which are loaded after all other configuration:

  • Bash: .bashrc_local
  • Zsh: .zshrc_local
  • Bash & Zsh: .sh_common_local
  • Vim: .vimrc_local

The preferred method of achieving this is by placing the files in the localrcs directory, prefixed with your machine's name (as displayed by hostname). When running the install script these will automatically be linked accordingly. This allows machine-specific configuration to be stored in the repository

Notable features

There’s a lot more than what is listed here, as there are too many small features to list. Explore the code to find everything.

Bash

  • Intelligent shortening of the current working directory in the prompt to prevent the prompt from becoming awkwardly long.
  • Prompt color changes depending on if connection is via SSH or not.

ZSH

  • Minimalist prompt. Doesn’t display directory if home, doesn’t display username if it’s your own, doesn’t display machine name if local (since hopefully you know what machine you’re on then).
  • c command for quick switching to code projects (in multiple directories), with tab-completion.
  • On OS X Lion, includes a port of Bash’s copying of the current directory when opening a new tab in Terminal.app.

Bash & ZSH

  • extract command to uncompress most common formats.
  • play command as a quick shortcut for Emacs games (Tetris, Pong, Snake, etc.).
  • pman command to open a man page in Preview, respectively (Mac only).

License & Credits

By Kevin Thomas. License is available in the LICENSE file.

Original inspiration from J. Andrew Marshall and Ryan Bates.

Various parts inspired by or adapted from Brian Racer, Todd Werth, Gary Bernhardt, & Pivotal Labs/Case Commons. Other credits not listed here may be noted in comments.

dotfiles's People

Contributors

amarshall avatar kpthomas avatar pefianco avatar

Watchers

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