-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0bcfcc1
Showing
5 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = "," |