Skip to content

Instantly share code, notes, and snippets.

View calrrox's full-sized avatar
🏠
Remote office

Carlos Torrealba calrrox

🏠
Remote office
View GitHub Profile
@calrrox
calrrox / rvm_git_bash_prompt.sh
Last active August 29, 2015 14:00
Set the bash prompt according to the current ruby version and gemset, the branch/status of the current git repository (git 1.9.1), the return value of the previous command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the current ruby version and gemset
# * the branch/status of the current git repository
# * the return value of the previous command
#
# USAGE:
@calrrox
calrrox / .ruby_node_git_prompt
Last active February 14, 2020 21:14 — forked from woods/git_svn_bash_prompt.sh
Set the bash prompt according to the current ruby version, node version and branch/status of the current git repository.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the return value of the previous command
#
# USAGE:
#
@calrrox
calrrox / sublime-text-2.sh
Last active December 20, 2015 13:09
Install Sublime Text 2 version 2.0.2 on Fedora 19
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 2
Comment=Edit text files
Exec=/usr/local/sublime-text-2/sublime_text
Icon=/usr/local/sublime-text-2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"