From 0aef6c158597cc319b334013903b2dd0e93e8953 Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Wed, 27 Jun 2012 10:16:05 -0400 Subject: [PATCH] moar --- dotjs/github.com.js | 2 +- fish/config.fish | 29 ++++++++++++++++++++++++++--- keymando/keymandorc.rb | 4 ++-- moom/com.manytricks.Moom.plist | Bin 5992 -> 5992 bytes vim/vimrc | 5 ++--- zshrc | 1 - 6 files changed, 31 insertions(+), 10 deletions(-) diff --git a/dotjs/github.com.js b/dotjs/github.com.js index 9a766e5..a8f2e1f 100644 --- a/dotjs/github.com.js +++ b/dotjs/github.com.js @@ -26,7 +26,7 @@ $(function() { return; } t = $(this).find('a.message').text().substring(0, 65); - if (t === 'Updated transiflex translations -- through update_translations.sh') { + if (t === 'Updated transifex translations -- through update_translations.sh') { $(this).hide(); return; } diff --git a/fish/config.fish b/fish/config.fish index 5597dab..1c08b94 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -10,12 +10,34 @@ alias paththis 'set PATH (pwd) $PATH' alias clc './get-last-commit-url.py | pbcopy' alias ef 'vim ~/.config/fish/config.fish' +alias ev 'vim ~/.vimrc' +alias ed 'vim ~/.vim/custom-dictionary.utf-8.add' +alias eo 'vim ~/Dropbox/Org' +alias eh 'vim ~/.hgrc' +alias ep 'vim ~/.pentadactylrc' +alias em 'vim ~/.mutt/muttrc' +alias ez 'vim ~/lib/dotfiles/zsh' +alias ek 'vim ~/lib/dotfiles/keymando/keymandorc.rb' +alias et 'vim ~/.tmux.conf' + +alias spotlight-off 'sudo mdutil -a -i off ; and sudo mv /System/Library/CoreServices/Search.bundle/ /System/Library/CoreServices/SearchOff.bundle/ ; and killall SystemUIServer' +alias spotlight-on 'sudo mdutil -a -i on ; and sudo mv /System/Library/CoreServices/SearchOff.bundle/ /System/Library/CoreServices/Search.bundle/ ; and killall SystemUIServer' +alias spotlight-wat 'sudo fs_usage -w -f filesys mdworker | grep "open"' + +set MUTT_BIN (which mutt) +alias mutt "cd ~/Desktop; $MUTT_BIN" alias h 'hg' alias g 'git' +alias pbc 'pbcopy' +alias pbp 'pbpaste' + alias weechat 'weechat-curses' +alias collapse="sed -e 's/ */ /g'" +alias cuts "cut -d' '" + alias pbc 'pbcopy' alias pbp 'pbpaste' @@ -31,6 +53,10 @@ alias oo 'open .' alias wo 'workon' alias deact 'deactivate' +function psg -d "Grep for a running process, returning its PID and full string" + ps auxww | grep --color=always $argv | grep -v grep | collapse | cuts -f 2,11- +end + # }}} # Environment variables {{{ @@ -183,9 +209,6 @@ alias ll 'll1' # }}} # Misc {{{ -set MUTT_BIN (which mutt) -alias mutt "cd ~/Desktop; $MUTT_BIN" - # }}} # Local Settings {{{ diff --git a/keymando/keymandorc.rb b/keymando/keymandorc.rb index b37da18..f56c738 100644 --- a/keymando/keymandorc.rb +++ b/keymando/keymandorc.rb @@ -8,13 +8,13 @@ # map "", lambda { reload() } # Application Switching ------------------------------------------------------- -map "", lambda { activate('Firefox') } +map "", lambda { activate('Firefox') } map "", lambda { activate('Pixelmator') } map "", lambda { activate('Pixen') } map "", lambda { activate('Rdio') } map "", lambda { activate('Twitter') } -map "" do +map "" do activate('iTerm') send('') end diff --git a/moom/com.manytricks.Moom.plist b/moom/com.manytricks.Moom.plist index ac6ef7f4da9f65bc417d688e8eb4e10088040993..53740b34a4628f646991517fe18f643c56fdae02 100644 GIT binary patch delta 32 ocmaE%_d;*O7bf9X7B0cYdIkX;oW_n@XXPLMT-LamojFki0Ns-eq5uE@ delta 32 ocmaE%_d;*O7bf9H{(iy6dIkX;oW_n@C$*jJSLNQ!&YUO$0N9NSsQ>@~ diff --git a/vim/vimrc b/vim/vimrc index 9cd6b87..e0a4c81 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -376,12 +376,13 @@ nnoremap _d :set ft=diff inoremap inoremap +" }}} + " }}} " Quick editing {{{ nnoremap ev :vsplit $MYVIMRC nnoremap ef :vsplit ~/.config/fish/config.fish -nnoremap es :vsplit ~/.vim/snippets/ nnoremap ed :vsplit ~/.vim/custom-dictionary.utf-8.add nnoremap eo :vsplit ~/Dropbox/Org4j nnoremap eh :vsplit ~/.hgrc @@ -391,8 +392,6 @@ nnoremap ez :vsplit ~/lib/dotfiles/zsh4j nnoremap ek :vsplit ~/lib/dotfiles/keymando/keymandorc.rb nnoremap et :vsplit ~/.tmux.conf -" }}} - " }}} " Searching and movement -------------------------------------------------- {{{ diff --git a/zshrc b/zshrc index ed02905..ea1052f 100755 --- a/zshrc +++ b/zshrc @@ -8,7 +8,6 @@ plugins=(command-coloring pip fabric lein redis-cli vagrant) source $ZSH/oh-my-zsh.sh - # Custom options ------------------------------------------------------------- unsetopt promptcr