Created
November 10, 2011 02:07
-
-
Save hzlzh/1353892 to your computer and use it in GitHub Desktop.
iTerm highlight config
This file contains hidden or 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
# 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' |
This file contains hidden or 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 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