Skip to content

Instantly share code, notes, and snippets.

@deborasetton
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save deborasetton/1d2672d93d3178765203 to your computer and use it in GitHub Desktop.

Select an option

Save deborasetton/1d2672d93d3178765203 to your computer and use it in GitHub Desktop.
Virtual Machine configuration
# Ubuntu 14.04
# Install Guest Additions
# Install updates
# Update system
sudo apt-get update
sudo apt-get upgrade
# Xfce
sudo apt-get install xfce4
# Git
sudo apt-get install git-core
# Terminal configuration for RVM
# See: https://rvm.io/integration/gnome-terminal
# RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
rvm install 2.2.0
rvm use 2.2.0 --default
gem install byebug rspec
# Sublime Text 3
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
# Sublime configurations
# ·············································································
{
// Show folders in the side bar in bold
"bold_folder_labels": true,
// Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "all",
// Makes tabs with modified files more visible
"highlight_modified_tabs": false,
// If enabled, will highlight any line with a caret
"highlight_line": false,
// Columns in which to display vertical rulers
"rulers": [],
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": true,
// Set to true to ensure the last line of the file ends in a newline
// character when saving
"ensure_newline_at_eof_on_save": true
}
# ·············································································
# Package control
# See: https://packagecontrol.io/installation
# Profile configurations
# ·············································································
##
# Personalize prompt
##
function __ruby_version
{
rvm current | cut -d " " -f1
}
# Prompt and prompt colors
# Source: http://blog.bigdinosaur.org/easy-ps1-colors/
BLACK="\[\033[0;30m\]"
BLACKBOLD="\[\033[1;30m\]"
RED="\[\033[0;31m\]"
REDBOLD="\[\033[1;31m\]"
GREEN="\[\033[0;32m\]"
GREENBOLD="\[\033[1;32m\]"
YELLOW="\[\033[0;33m\]"
YELLOWBOLD="\[\033[1;33m\]"
BLUE="\[\033[0;34m\]"
BLUEBOLD="\[\033[1;34m\]"
PURPLE="\[\033[0;35m\]"
PURPLEBOLD="\[\033[1;35m\]"
CYAN="\[\033[0;36m\]"
CYANBOLD="\[\033[1;36m\]"
WHITE="\[\033[0;37m\]"
WHITEBOLD="\[\033[1;37m\]"
PS_V1='\n\[\033[1;33m\]➜ \w\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]") \[\033[1;34m\]($(__ruby_version))\[\033[0m\]\n\[\033[1;33m\]\#: \[\033[0m\]'
PS_V2='\n\[\033[1;32m\]\u\[\033[0m\] at \[\033[0;34m\]\w\[\033[0m\] \[\033[1;34m\]\[\033[0m\]\n\[\033[1;34m\]\$ \[\033[0m\]'
PS_V3='\n\[\033[1;32m\]\u\[\033[0m\] at \[\033[0;34m\]\w\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]") \[\033[1;34m\]($(__ruby_version))\[\033[0m\]\n\[\033[1;33m\]\$ \[\033[0m\]'
PS1=$PS_V3
# ·············································································
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment