Created
October 8, 2011 08:46
-
-
Save utaal/1272039 to your computer and use it in GitHub Desktop.
home ubuntu
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
source ~/.bashrc_local | |
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
# 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 | |
# Prompt | |
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 | |
fi | |
if [ "$color_prompt" = yes ]; then | |
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
PS1=': ${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\w\[\033[00m\] (\[\033[01;32m\]\u@\h\[\033[00m\])\n$ ' | |
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)}\w (\u@\h) \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 | |
#alias ll='ls -alF' | |
#alias la='ls -A' | |
#alias l='ls -CF' | |
alias l='ls' | |
# Add an "alert" alias for long running commands. Use like so: | |
# sleep 10; alert | |
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' | |
# 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 | |
alias sgitc='git svn rebase && git svn dcommit' | |
alias scribes='scribes > /dev/null 2>&1' | |
# Only list dirs | |
alias ldir='ls -d */' |
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
set backup | |
set guioptions-=T | |
set mousehide | |
set ruler | |
set autoindent | |
set shiftwidth=2 | |
set expandtab | |
set sm | |
set tabstop=2 | |
set wrap | |
" disable backups | |
set nobackup | |
" enable mouse | |
set mouse=a | |
" incremental smartCase search with highlighting | |
set ignorecase | |
set hlsearch | |
set smartcase | |
set incsearch | |
" enable filetype | |
filetype plugin on | |
filetype indent on | |
" color scheme | |
colorscheme wombat | |
" vim-addon-manager | |
set runtimepath+=~/opt/vim/plugins/vim-addon-manager | |
call vam#ActivateAddons(['vim-scala','supertab']) | |
" ctags | |
set tags+=tags;$HOME |
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
" Maintainer: Lars H. Nielsen (dengmao@gmail.com) | |
" Last Change: January 22 2007 | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let colors_name = "wombat" | |
" Vim >= 7.0 specific colors | |
if version >= 700 | |
hi CursorLine guibg=#2d2d2d | |
hi CursorColumn guibg=#2d2d2d | |
hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold | |
hi Pmenu guifg=#f6f3e8 guibg=#444444 | |
hi PmenuSel guifg=#000000 guibg=#cae682 | |
endif | |
" General colors | |
hi Cursor guifg=NONE guibg=#656565 gui=none | |
hi Normal guifg=#f6f3e8 guibg=#242424 gui=none | |
hi NonText guifg=#808080 guibg=#303030 gui=none | |
hi LineNr guifg=#857b6f guibg=#000000 gui=none | |
hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic | |
hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none | |
hi VertSplit guifg=#444444 guibg=#444444 gui=none | |
hi Folded guibg=#384048 guifg=#a0a8b0 gui=none | |
hi Title guifg=#f6f3e8 guibg=NONE gui=bold | |
hi Visual guifg=#f6f3e8 guibg=#444444 gui=none | |
hi SpecialKey guifg=#808080 guibg=#343434 gui=none | |
" Syntax highlighting | |
hi Comment guifg=#99968b gui=italic | |
hi Todo guifg=#8f8f8f gui=italic | |
hi Constant guifg=#e5786d gui=none | |
hi String guifg=#95e454 gui=italic | |
hi Identifier guifg=#cae682 gui=none | |
hi Function guifg=#cae682 gui=none | |
hi Type guifg=#cae682 gui=none | |
hi Statement guifg=#8ac6f2 gui=none | |
hi Keyword guifg=#8ac6f2 gui=none | |
hi PreProc guifg=#e5786d gui=none | |
hi Number guifg=#e5786d gui=none | |
hi Special guifg=#e7f6da gui=none | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment