Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
fiorix committed Aug 31, 2011
0 parents commit 3add8d6
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 0 deletions.
33 changes: 33 additions & 0 deletions bash_profile
@@ -0,0 +1,33 @@
# fiorix's .bash_profile
# 20100722rc1

# Aliases
alias ls='ls -G'
alias rm='rm -vi'
alias cp='cp -vi'
alias mv='mv -vi'

# Path
export PATH=/usr/local/bin:/usr/local/sbin:$PATH

# Editor
export EDITOR=vim

# Fancy highlighting for grep
export GREP_OPTIONS="--color=auto"

# Python
export PYTHONSTARTUP=~/.pyrc

# Bash history
export HISTSIZE=8000

# Avoid OSX's tar to add dot underscore (._) files when creating archives.
export COPYFILE_DISABLE=true

# Geoip
function geoip_curl_xml { curl -D - http://freegeoip.net/xml/$1; }
alias geoip=geoip_curl_xml

# Good old fortune.
fortune -o
6 changes: 6 additions & 0 deletions dotssh_config
@@ -0,0 +1,6 @@
# fiorix's ~/.ssh/config
# 20110321rc1
#
# Connection sharing settings.
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
22 changes: 22 additions & 0 deletions pyrc
@@ -0,0 +1,22 @@
# fiorix's pyrc
# 20090519rc2
#
# Add the following to .bash_profile:
# export PYTHONSTARTUP=~/.pyrc

try:
import readline
except ImportError:
pass
else:
import rlcompleter, os, atexit

histfile = os.path.join(os.environ['HOME'], '.pyhist')
try:
readline.read_history_file(histfile)
except IOError:
pass

readline.parse_and_bind('bind ^I rl_complete')
atexit.register(readline.write_history_file, histfile)
del os, histfile, readline, atexit, rlcompleter
52 changes: 52 additions & 0 deletions vimrc
@@ -0,0 +1,52 @@
" fiorix's vimrc
" 20110831rc1

" Use vim defaults.
set nocompatible

" Show some extra information.
set ruler
set magic
set showcmd
set showmode
set showmatch
set incsearch
set laststatus=2
set report=0

" Explicitly set the default tab to \t, not 8 spaces.
" Also set auto indent and allow backspace anywhere.
" For more info check this out:
" http://www.kernel.org/doc/Documentation/CodingStyle
set sw=8 noet
set bs=2
set ai

" History and .viminfo
set history=50
set viminfo='20,\"50

" Colors, syntax and search highlight.
syntax on
set hlsearch
set t_Co=256
hi Comment term=bold ctermfg=White
hi Search term=bold ctermfg=Black ctermbg=DarkYellow

" Highlight cursor line.
set cursorline
hi CursorLine cterm=NONE ctermbg=DarkBlue ctermfg=White

" Highlight overlength lines.
set cc=80
hi ColorColumn ctermbg=DarkGrey

" Highlight trailing whitespace.
highlight WhitespaceEOL ctermbg=DarkRed
match WhitespaceEOL /\s\+$/

" C and C++ specific settings.
autocmd FileType c,cpp set cindent

" Python specific settings.
autocmd FileType python set expandtab tabstop=4 shiftwidth=4 softtabstop=4

0 comments on commit 3add8d6

Please sign in to comment.