aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2011-07-09 13:40:11 +0200
committerMiquel Sabaté <mikisabate@gmail.com>2011-07-09 13:40:11 +0200
commit6f0ff061bf2e572d5817f2aa4bb35218d7f0bbbe (patch)
tree5afde6fd788fe2c945c40f64276090d1c586131d
downloaddotfiles-6f0ff061bf2e572d5817f2aa4bb35218d7f0bbbe.tar.gz
dotfiles-6f0ff061bf2e572d5817f2aa4bb35218d7f0bbbe.zip
Initial commit
-rw-r--r--bashrc18
-rw-r--r--gemrc10
-rw-r--r--gitconfig14
-rw-r--r--irbrc46
4 files changed, 88 insertions, 0 deletions
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