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 3add8d6
Showing
4 changed files
with
113 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,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 |
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,6 @@ | ||
# fiorix's ~/.ssh/config | ||
# 20110321rc1 | ||
# | ||
# Connection sharing settings. | ||
ControlMaster auto | ||
ControlPath /tmp/ssh_mux_%h_%p_%r |
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,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 |
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,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 |