Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anupnivargi committed Jan 2, 2011
0 parents commit 0bcfcc1
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bash_aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Rails Aliases
alias rss='rails server'
alias rsc='rails console'

# Git Aliases
alias gadd='git add'
alias gst='git status'
alias gbr='git branch'
alias gcm='git commit'
alias gpl='git pull'
alias gph='git push'
alias gck='git checkout'
alias gdf='git diff'
alias grm='git rm'

# SVN aliases
alias sst='svn status'
alias sadd='svn add'
alias scm='svn commit'
alias sup='svn update'
alias sdiff='svn diff'


11 changes: 11 additions & 0 deletions gvimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"This file has settings for graphical VI i.e gvim

" Looks
set guifont=Inconsolata\ Medium\ 15 " Font family and font size
set background=dark " Background
colorscheme ir_black " Colorscheme

" Other GUI options
set guioptions+=c " Reload the files edited outside VIM without alert
set guioptions-=T " Hide Gvim top toolbar
set guioptions+=i " Use VIM icon
11 changes: 11 additions & 0 deletions irbrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rubygems'
require 'logger'

# Show log query in console
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
Object.const_set('RAILS_DEFAULT_LOGGER', Logger.new(STDOUT))
end

# Load Rails Settings
load File.dirname(__FILE__) + '/.railsrc' if $0 == 'irb' && ENV['RAILS_ENV']

12 changes: 12 additions & 0 deletions railsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rails_env = ENV['RAILS_ENV']
project = File.basename(Dir.pwd)

IRB.conf[:PROMPT] ||= {}
IRB.conf[:PROMPT][:RAILS] = {
:PROMPT_I => "#{project}> ",
:PROMPT_S => "#{project}* ",
:PROMPT_C => "#{project}? ",
:RETURN => "=> %s\n"
}
IRB.conf[:PROMPT_MODE] = :RAILS

55 changes: 55 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
" Vim Configuration
" Author- Anup Nivargi
" =================================================================================================
set nocompatible " Load VIM in nocompatible mode to use enhanced features

set shell=/bin/bash " Set the shell path

set history=700 " Set Command history

filetype plugin indent on " Enable filetype plugin and indentation

set autoread " Update file when changed from outside

set hidden " Handle multpile buffers better

" Visual Information
set showmode " Show the current mode
set number " Show line numbers
set wildmenu " Enhanced command line completition
set laststatus=2 " Show status line all the time. Takes a extra line on the screen
set cmdheight=2 " The commandbar height
"set ruler " Always show current position

" Error handeling
set noerrorbells
set novisualbell

" Visual Enhancement
syntax enable " Enable syntax highlighting
set cursorline " Highlight the cursor line
set showmatch " Highlight matching bracets
set magic " Set magic on, for regular expressions
colorscheme default " Colorscheme to use in normal VI

" Backups
set nobackup
set nowritebackup
set noswapfile

" Tabs and indentation
set expandtab " Use spaces instead if tabs
set autoindent " Auto indent
set smartindent " Smart indent
set wrap " Wrap lines

" Search
set ignorecase " Case insensitive search
set smartcase " Case sensitive when search contains capital
set hlsearch " Highlight search things
set incsearch " Incremental search

" autocmd! bufwritepost vimrc source ~/.vim_runtime/vimrc

" Aliases
let mapleader = ","

0 comments on commit 0bcfcc1

Please sign in to comment.