Skip to content

Commit

Permalink
serialx's configuration added.
Browse files Browse the repository at this point in the history
  • Loading branch information
serialx committed Mar 7, 2011
1 parent aff5d34 commit 6149c66
Show file tree
Hide file tree
Showing 75 changed files with 41,309 additions and 0 deletions.
101 changes: 101 additions & 0 deletions bashrc
@@ -0,0 +1,101 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi

alias notify='notifo_cli.py -u serialx -s apikey -n foo'
3 changes: 3 additions & 0 deletions gitconfig
@@ -0,0 +1,3 @@
[user]
name = Brian Hong
email = serialx.net@gmail.com
7 changes: 7 additions & 0 deletions hgrc
@@ -0,0 +1,7 @@
[ui]
username = Brian Hong <serialx@cloudinsight.net>
ssh = ssh -C

[extensions]
mq =
rebase =
2 changes: 2 additions & 0 deletions ssh/authorized_keys
@@ -0,0 +1,2 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCeeGi7X4NHAMv+m4VVrw+jFOS/q30iSZj5VRrjZSqa/EIHtHGAHm2AKbGYAKWGk4YsxXSiFmnx9/QlAHEFhVaFhAZ/2QpFj5gX39upwaz94zynnc4EzMv00uq7o/iTvVdbb492fEgjQ7U/3KbRsyhCK4A9Sn88ql/N5XUMINz1+Q== Sung-Jin Hong (yessign)

65 changes: 65 additions & 0 deletions tmux.conf
@@ -0,0 +1,65 @@
# Change the prefix key (screen friendly).
set-option -g prefix C-y
unbind-key C-b
bind-key C-y send-prefix

# Default global options.
set-option -g bell-action none
set-option -g default-terminal "screen-256color"
set-option -g mouse-select-pane on
set-option -g status-bg green
set-option -g status-keys vi
set-option -g status-right-length 60

# Default global window options
set-window-option -g mode-keys vi
set-window-option -g mode-mouse on
set-window-option -g utf8 on

# Keys to switch session.
bind-key q switchc -t0
bind-key w switchc -t1
bind-key e switchc -t2

# Other key bindings.
bind-key i choose-window

bind-key m setw monitor-activity

bind-key y setw force-width 81
bind-key u setw force-width 0

bind-key D detach \; lock
bind-key N neww \; splitw -d

# statusbar --------------------------------------------------------------

# Show messages and notifications for 2 seconds.
set-option -g display-time 2000

# Refresh the status bar every 1 second.
set-option -g status-interval 1000

# The status bar itself.
set-option -g status-left "[#S]"
set-option -g status-right "#(uptime)"

# default statusbar colors
set-option -g status-fg white
set-option -g status-bg default
set-option -g status-attr default

# default window title colors
set-window-option -g window-status-fg cyan
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim

# active window title colors
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright

# command/message line colors
set-option -g message-fg white
set-option -g message-bg black
set-option -g message-attr bright
1 change: 1 addition & 0 deletions vim/.VimballRecord
@@ -0,0 +1 @@
supertab.vba: call delete('/home/serialx/.vim/doc/supertab.txt')|call delete('/home/serialx/.vim/plugin/supertab.vim')
7 changes: 7 additions & 0 deletions vim/.netrwhist
@@ -0,0 +1,7 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =5
let g:netrw_dirhist_1='/home/serialx/sandbox/lucene-solr/lucene/src/java/org/apache/lucene/analysis/tokenattributes'
let g:netrw_dirhist_2='/home/serialx/sandbox/lucene-solr/solr'
let g:netrw_dirhist_3='/home/serialx/sandbox/lucene-solr'
let g:netrw_dirhist_4='/home/serialx/workspace/kaistportal/kportal/accounts'
let g:netrw_dirhist_5='/home/serialx/workspace/kaistportal/kportal/templates/main'
40 changes: 40 additions & 0 deletions vim/after/plugin/snipMate.vim
@@ -0,0 +1,40 @@
" These are the mappings for snipMate.vim. Putting it here ensures that it
" will be mapped after other plugins such as supertab.vim.
if !exists('loaded_snips') || exists('s:did_snips_mappings')
finish
endif
let s:did_snips_mappings = 1

" This is put here in the 'after' directory in order for snipMate to override
" other plugin mappings (e.g., supertab).
"
" You can safely adjust these mappings to your preferences (as explained in
" :help snipMate-remap).
ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
" The default mappings for these are annoying & sometimes break snipMate.
" You can change them back if you want, I've put them here for convenience.
snor <bs> b<bs>
snor <right> <esc>a
snor <left> <esc>bi
snor ' b<bs>'
snor ` b<bs>`
snor % b<bs>%
snor U b<bs>U
snor ^ b<bs>^
snor \ b<bs>\
snor <c-x> b<bs><c-x>
" By default load snippets in snippets_dir
if empty(snippets_dir)
finish
endif

call GetSnippets(snippets_dir, '_') " Get global snippets

au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
" vim:noet:sw=4:ts=4:ft=vim

0 comments on commit 6149c66

Please sign in to comment.