From 6f0ff061bf2e572d5817f2aa4bb35218d7f0bbbe Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Sat, 9 Jul 2011 13:40:11 +0200 Subject: Initial commit --- bashrc | 18 ++++++++++++++++++ gemrc | 10 ++++++++++ gitconfig | 14 ++++++++++++++ irbrc | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 bashrc create mode 100644 gemrc create mode 100644 gitconfig create mode 100644 irbrc diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..23561f6 --- /dev/null +++ b/bashrc @@ -0,0 +1,18 @@ +alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' +alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' +alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' + +# vim stuff +export EDITOR=vim +export VISUAL=vim +alias vi=vim + +# prompt +PS1='\u:\w $ ' + +# Paths +export KDEV_DIR=/home/mssola/kde/kdevelop +export KDEDIR=$KDEV_DIR +export KDEDIRS=$KDEDIR +export KDEV=/home/mssola/Projects/kdevelop4 +export RUBY=$KDEV/kdev-ruby diff --git a/gemrc b/gemrc new file mode 100644 index 0000000..fd85905 --- /dev/null +++ b/gemrc @@ -0,0 +1,10 @@ +--- +:update_sources: true +:sources: +- http://gems.rubyforge.org/ +- http://gems.github.com +:benchmark: false +:bulk_threshold: 1000 +:backtrace: false +:verbose: true +gem: --no-ri --no-rdoc diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..1efb21a --- /dev/null +++ b/gitconfig @@ -0,0 +1,14 @@ +[user] + name = Miquel Sabaté + email = mikisabate@gmail.com + +[url "https://github.com/mssola/"] + insteadOf = mssola: + +[url "git://anongit.kde.org/"] + insteadOf = kde: +[url "ssh://git@git.kde.org/"] + pushInsteadOf = kde: + +[core] + editor = vim diff --git a/irbrc b/irbrc new file mode 100644 index 0000000..176ed74 --- /dev/null +++ b/irbrc @@ -0,0 +1,46 @@ +#!/usr/bin/env ruby +# +# Author: Miquel Sabaté +# http://github.com/mssola/dotfiles + + +require 'irb/completion' +require 'irb/ext/save-history' +require 'rubygems' +require 'pp' +require 'wirble' + + +# Colorize! +Wirble.init +Wirble.colorize + +# Simple prompt +IRB.conf[:PROMPT_MODE] = :SIMPLE + +# History +IRB.conf[:SAVE_HISTORY] = 100 +IRB.conf[:HISTORY_FILE] = File.expand_path('~/.irb_history') + +# Auto-indentation +IRB.conf[:AUTO_INDENT] = true + +# Use readline +IRB.conf[:USE_READLINE] = true + +# List object methods +def local_methods(obj = self) + (obj.methods - obj.class.superclass.instance_methods).sort +end + +# Reload this .irbrc +def reload! + load __FILE__ +end + +# Beautify ls +def ls + %x{ls}.split("\n") +end + +alias p pp -- cgit v1.2.3