Merge branch 'master' of majnematic.com:davesdots

This commit is contained in:
David Majnemer 2010-09-18 18:16:53 -05:00
commit da28fbe2fa
4 changed files with 10 additions and 13 deletions

View file

@ -5,10 +5,8 @@ for dircolors in gdircolors dircolors ; do
dircolor_text='' dircolor_text=''
if [ -f "${HOME}/.dir_colors" ] ; then if [ -f "${HOME}/.dir_colors" ] ; then
dircolor_text=`cat "${HOME}/.dir_colors"` dircolor_text=`cat "${HOME}/.dir_colors"`
eval `$dircolors -b "${HOME}/.dir_colors"`
elif [ -f /etc/DIR_COLORS ] ; then elif [ -f /etc/DIR_COLORS ] ; then
dircolor_text=`cat /etc/DIR_COLORS` dircolor_text=`cat /etc/DIR_COLORS`
eval `$dircolors -b /etc/DIR_COLORS`
fi fi
if $dircolors --version 2>/dev/null | grep GNU >/dev/null 2>&1 ; then if $dircolors --version 2>/dev/null | grep GNU >/dev/null 2>&1 ; then

View file

@ -1,18 +1,13 @@
#! /bin/sh #! /bin/sh
# based on a script by Duane Johnson with some simplifications # based on a script by Duane Johnson with some simplifications
CDPATH=`git rev-parse --show-cdup` GIT_DIR=`git rev-parse --git-dir`
# not a valid git repo? leave # not a valid git repo? leave
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
exit exit
fi fi
# switch to the directory holding .git
if [ -n "${CDPATH}" ] ; then
cd "${CDPATH}"
fi
# Show various information about this git directory # Show various information about this git directory
echo "== Remote URL: `git remote -v`" echo "== Remote URL: `git remote -v`"
@ -25,7 +20,7 @@ git branch
echo echo
echo "== Configuration (.git/config)" echo "== Configuration (.git/config)"
cat .git/config cat "${GIT_DIR}/config"
echo echo
echo "== Most Recent Commit" echo "== Most Recent Commit"

10
vimrc
View file

@ -208,9 +208,9 @@ if has('eval')
exe "tag " . expand("<cword>") exe "tag " . expand("<cword>")
endif endif
endfun endfun
endif
nmap <C-]> :call GoDefinition()<CR> nmap <C-]> :call GoDefinition()<CR>
endif
if has('autocmd') if has('autocmd')
" Shortcuts " Shortcuts
@ -304,6 +304,12 @@ if has('eval')
inoremap <buffer> <C-K> <C-R>=EmacsKill()<CR> inoremap <buffer> <C-K> <C-R>=EmacsKill()<CR>
endif endif
" w!! for sudo w!
cmap w!! w !sudo tee % >/dev/null
" clear search
nnoremap <esc> :noh<return><esc>
" Disable q and Q " Disable q and Q
map q <Nop> map q <Nop>
map Q <Nop> map Q <Nop>

View file

@ -57,9 +57,7 @@ main = do
, ("M-S-a", windowPromptGoto defaultXPConfig { position = Top }) , ("M-S-a", windowPromptGoto defaultXPConfig { position = Top })
, ("M-a", windowPromptBring defaultXPConfig { position = Top }) , ("M-a", windowPromptBring defaultXPConfig { position = Top })
, ("M-S-l", spawn "~/bin/lock") , ("M-S-l", spawn "~/bin/lock")
, ("M-<Left>", moveTo Prev HiddenNonEmptyWS)
, ("M-S-<Left>", shiftToPrev) , ("M-S-<Left>", shiftToPrev)
, ("M-<Right>", moveTo Next HiddenNonEmptyWS)
, ("M-S-<Right>", shiftToNext) , ("M-S-<Right>", shiftToNext)
, ("M-<Up>", windows W.focusUp) , ("M-<Up>", windows W.focusUp)
, ("M-S-<Up>", windows W.swapUp) , ("M-S-<Up>", windows W.swapUp)