Skip to content

Instantly share code, notes, and snippets.

@hzlzh
Created November 10, 2011 02:07
Show Gist options
  • Save hzlzh/1353892 to your computer and use it in GitHub Desktop.
Save hzlzh/1353892 to your computer and use it in GitHub Desktop.
iTerm highlight config
# using color
export CLICOLOR=1
# \h:\W \u\$
export PS1='\[\033[01;33m\]\u@\h\[\033[01;31m\] \W\$\[\033[00m\] '
# grep
alias grep='grep --color=always'
set ai " auto indenting
set history=100 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
set hlsearch " highlight the last searched term
filetype plugin on " use the file type plugins
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif |
\ endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment