Coder Social home page Coder Social logo

mhs / tidbits Goto Github PK

View Code? Open in Web Editor NEW
21.0 15.0 8.0 2.65 MB

A collection of random yet helpful scripts by and for the folks at Mutually Human Software

Home Page: http://www.mutuallyhuman.com

Ruby 81.42% Shell 10.60% JavaScript 3.18% Gherkin 4.80%

tidbits's Introduction

Tidbits

A collection of random yet helpful scripts by and for the folks at Mutually Human Software. http://www.mutuallyhuman.com

Installation

Enter the following in terminal:

cd ~
git clone git://github.com/mhs/tidbits.git .tidbits
~/.tidbits/bin/tidbits_update_gitconfig

Then, add the following to ~/.bash_profile

# Include tidbits
source ~/.tidbits/mhsrc

tidbits's People

Contributors

zdennis avatar mvanholstyn avatar jeremywrowe avatar zgchurch avatar majormajors avatar softwaregravy avatar manlycode avatar maxsilver avatar auvi avatar

Stargazers

Wiktor Kettel avatar Izaak "Zaak" Beekman avatar Angus H. avatar Stefan Rumersdorfer avatar Scott Hulbert avatar Yasuhiro Manai avatar Johnnie Pittman avatar Christopher Bowns avatar Jan Michael Ihl avatar Kenzie Campbell avatar  avatar  avatar Hans Raaf avatar Philipp Kretzschmar avatar  avatar Cambero avatar Matt Blodgett avatar  avatar Brandon Zylstra avatar  avatar Neeraj Singh avatar

Watchers

 avatar  avatar Brandon Zylstra avatar  avatar  avatar Ben Downey avatar James Cloos avatar John Muyskens avatar Garrett Hoofman avatar Mallory Bartz  avatar Stella Cho avatar Ryan Snodgrass avatar  avatar Jenna Elamin-Mueller avatar  avatar

tidbits's Issues

encapsulate tidbits' .gitconfig in a separate file

Rather than inserting the configuration for Git inside the user's global configuration (~/.gitconfig), it seems preferable to include it by simply adding something like

[include]
    path = ~/.tidbits/gitconfig

(For reference, see: git/git@9b25a0b)

The main problem with overloading the user's ~/.gitconfig is that we can easily wind up with instances where there are multiple values for one configuration setting, which can prevent the git config command from functioning. For instance, suppose both the Tidbits section and the rest of a config file both have:

[example "test"]
  blah = yada

and the user runs a script that executes git config --global example.test.blah yackety, they will get an error:

warning: example.test.blah has multiple values
error: cannot overwrite multiple values with a single value
       Use a regexp, --add or --replace-all to change example.test.blah.

Inclusion of external config files should work in Git 1.7.10.2 and up. If we wanted to support earlier versions (and I don't think we care about them) we could put the Tidbits configurations in /etc/gitconfig (or just maintain the current behavior for ancient versions of Git).

Warnings with certain versions bash, sometimes

I've seen these occasionally with with bash:

Last login: Fri Aug  5 00:16:07 2011 from 10.201.146.14
/path/to/user/.tidbits/lib/aliasdir.rb:5: warning: parenthesize argument(s) for future version

Specifically with:

 GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)
 Copyright (C) 2005 Free Software Foundation, Inc.

Although I've seen other hosts with the same version that do not show the warning.

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.