Explorar el Código

do not highlight current line because it does not work with term-mode

pull/1/head
10sr hace 11 años
padre
commit
93721cc2e9
Se han modificado 3 ficheros con 30 adiciones y 26 borrados
  1. +21
    -21
      bashrc
  2. +3
    -0
      setup.sh
  3. +6
    -5
      vimrc

+ 21
- 21
bashrc Ver fichero

@@ -468,27 +468,6 @@ convmv-sjis2utf8-notest(){
convmv -r -f sjis -t utf8 * --notest
}

__my_moc_state(){
type mocp >/dev/null 2>&1 || return
test "`mocp -Q %state 2>/dev/null`" == PLAY || return
printf "$1" "`mocp -Q %title 2>/dev/null`"
}

__my_parse_svn_branch() {
local LANG=C
local svn_url=$(svn info 2>/dev/null | sed -ne 's#^URL: ##p')
local svn_repository_root=$(svn info 2>/dev/null | sed -ne 's#^Repository Root: ##p')
echo ${svn_url} | sed -e 's#^'"${svn_repository_root}"'##g' | awk '{print $1}'
}

__my_svn_ps1(){
if svn status >/dev/null 2>&1
then
local svn_branch=$(__my_parse_svn_branch)
test -n "${svn_branch}" && printf "$1" "{$svn_branch}"
fi
}

#Change ANSI Colors
_chengecolors(){
echo -e \
@@ -549,6 +528,27 @@ winln(){
fi
}

__my_moc_state(){
type mocp >/dev/null 2>&1 || return
test "`mocp -Q %state 2>/dev/null`" == PLAY || return
printf "$1" "`mocp -Q %title 2>/dev/null`"
}

__my_parse_svn_branch() {
local LANG=C
local svn_url=$(svn info 2>/dev/null | sed -ne 's#^URL: ##p')
local svn_repository_root=$(svn info 2>/dev/null | sed -ne 's#^Repository Root: ##p')
echo ${svn_url} | sed -e 's#^'"${svn_repository_root}"'##g' | awk '{print $1}'
}

__my_svn_ps1(){
if svn status >/dev/null 2>&1
then
local svn_branch=$(__my_parse_svn_branch)
test -n "${svn_branch}" && printf "$1" "{$svn_branch}"
fi
}

__my_battery_status(){
local dir=/sys/class/power_supply/BAT0
if test -d $dir && test -r $dir/status && test -r $dir/charge_full && test -r $dir/charge_now


+ 3
- 0
setup.sh Ver fichero

@@ -80,6 +80,9 @@ git_config(){
mac_defaults(){
test "`uname`" = Darwin || return 1

# http://appdrill.net/60641/mac-boot-mute.html
#sudo nvram SystemAudioVolume=%80

# add quit entry in menu
defaults write com.apple.finder QuitMenuItem -bool YES
# show full path on titlebar


+ 6
- 5
vimrc Ver fichero

@@ -96,11 +96,12 @@ noremap <C-c> <ESC>:<C-u>w<CR>
" highlight current line
" set cursorline
" show cursor line only in current window
augroup cch
autocmd! cch
autocmd WinLeave * set nocursorline
autocmd WinEnter,BufRead * set cursorline
augroup END
" not work in term-mode of emacs
" augroup cch
" autocmd! cch
" autocmd WinLeave * set nocursorline
" autocmd WinEnter,BufRead * set cursorline
" augroup END

hi clear CursorLine
highlight CursorLine term=underline cterm=underline gui=underline


Cargando…
Cancelar
Guardar