From 05d977ece699f2a966b5538da0a2e62b79a326fe Mon Sep 17 00:00:00 2001 From: hellerve Date: Sun, 12 Apr 2015 22:18:03 +0200 Subject: [PATCH] Multiple minor changes --- tmux.conf | 14 ++++++++++++++ vimrc | 2 +- zshrc | 10 ++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index 5375ab4..2e1f7aa 100644 --- a/tmux.conf +++ b/tmux.conf @@ -13,3 +13,17 @@ set-window-option -g mode-mouse on set-option -g mouse-select-pane on set-option -g mouse-select-window on set -g terminal-overrides 'xterm*:smcup@:rmcup@' + +bind m \ + set -g mode-mouse on \;\ + set -g mouse-resize-pane on \;\ + set -g mouse-select-pane on \;\ + set -g mouse-select-window on \;\ + display 'Mouse: ON' + +bind M \ + set -g mode-mouse off \;\ + set -g mouse-resize-pane off \;\ + set -g mouse-select-pane off \;\ + set -g mouse-select-window off \;\ + display 'Mouse: OFF' diff --git a/vimrc b/vimrc index 6d982e3..c79021f 100644 --- a/vimrc +++ b/vimrc @@ -81,7 +81,7 @@ Bundle 'christoomey/vim-tmux-navigator' " Haskell Bundle 'raichoo/haskell-vim' Bundle 'enomsg/vim-haskellConcealPlus' -"Bundle 'eagletmt/ghcmod-vim' +Bundle 'eagletmt/ghcmod-vim' Bundle 'eagletmt/neco-ghc' Bundle 'Twinside/vim-hoogle' diff --git a/zshrc b/zshrc index af2aeb6..c4dcbca 100644 --- a/zshrc +++ b/zshrc @@ -141,6 +141,16 @@ RPROMPT='`rprompt-git-current-branch`' RPROMPT+="%{$fg[yellow]%}%~%{$reset_color%}" RPROMPT+=' `cabal_sandbox_info`' +function ghc-pkg-reset() { + read 'ans?erasing all your user ghc and cabal packages - are you sure (y/n) ? ' + if [[ "$ans" =~ ^[Yy]$ ]] ; then + echo 'erasing directories under ~/.ghc'; rm -rf `find ~/.ghc -maxdepth 1 -type d`; \ + echo 'erasing ~/.cabal/lib'; rm -rf ~/.cabal/lib; \ + # echo 'erasing ~/.cabal/packages'; rm -rf ~/.cabal/packages; \ + # echo 'erasing ~/.cabal/share'; rm -rf ~/.cabal/share; \ + fi +} + extract(){ if [ -f $1 ] ; then case $1 in