Skip to content

Instantly share code, notes, and snippets.

View larc000's full-sized avatar

Luis Angel Rodríguez larc000

  • Hangar
  • San Jose, Costa Rica
View GitHub Profile
@larc000
larc000 / .git-prompt.sh
Created April 3, 2019 05:34
.git-prompt.sh
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@larc000
larc000 / .git-completion.bash
Created April 3, 2019 05:34
.git-completion.bash
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@larc000
larc000 / node-copy-to-bin
Created May 12, 2015 04:07
Node version default using NVM. One copy of node globally so that other users can access it, and use nvm to switch between your development versions.
nvm use v0.10.33
n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local