diff --git a/git-info b/git-info index e9c3637..512d641 100755 --- a/git-info +++ b/git-info @@ -1,18 +1,13 @@ #! /bin/sh # 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 if [ $? -ne 0 ] ; then exit fi -# switch to the directory holding .git -if [ -n "${CDPATH}" ] ; then - cd "${CDPATH}" -fi - # Show various information about this git directory echo "== Remote URL: `git remote -v`" @@ -25,7 +20,7 @@ git branch echo echo "== Configuration (.git/config)" -cat .git/config +cat "${GIT_DIR}/config" echo echo "== Most Recent Commit" diff --git a/vimrc b/vimrc index 690feaa..1742eb3 100644 --- a/vimrc +++ b/vimrc @@ -208,9 +208,9 @@ if has('eval') exe "tag " . expand("") endif endfun -endif -nmap :call GoDefinition() + nmap :call GoDefinition() +endif if has('autocmd') " Shortcuts @@ -304,6 +304,12 @@ if has('eval') inoremap =EmacsKill() endif +" w!! for sudo w! +cmap w!! w !sudo tee % >/dev/null + +" clear search +nnoremap :noh + " Disable q and Q map q map Q diff --git a/xmonad.hs b/xmonad.hs index 18871bb..1a7d0eb 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -57,9 +57,7 @@ main = do , ("M-S-a", windowPromptGoto defaultXPConfig { position = Top }) , ("M-a", windowPromptBring defaultXPConfig { position = Top }) , ("M-S-l", spawn "~/bin/lock") - , ("M-", moveTo Prev HiddenNonEmptyWS) , ("M-S-", shiftToPrev) - , ("M-", moveTo Next HiddenNonEmptyWS) , ("M-S-", shiftToNext) , ("M-", windows W.focusUp) , ("M-S-", windows W.swapUp)