# HG changeset patch # User Steve Losh # Date 1349272284 14400 # Node ID c82fca40999ae6d7d28dce5275170d0b8c8860e2 # Parent dbcbfa37f03683beaee2a41c9451e8078f9d6828 Moar. diff -r dbcbfa37f036 -r c82fca40999a bash_profile --- a/bash_profile Tue Oct 02 12:47:37 2012 +0300 +++ b/bash_profile Wed Oct 03 09:51:24 2012 -0400 @@ -6,12 +6,28 @@ # This file contains aliases and functions that duplicate some fish # functionality, because Vim will use bash as its external command shell. -function a() { - if [ -f '.agignorevcs' ]; then - ag -U $* +AG_BIN="`which ag`" +function ag() { + if test -f '.agignore' && grep -q 'pragma: skipvcs' '.agignore'; then + $AG_BIN --search-files -U $* else - ag $* + $AG_BIN --search-files $* fi } export PATH=~/bin:~/lib/dotfiles/bin:/usr/local/share/python:$PATH + +alias h='hg' +alias g='git' +alias pbc='pbcopy' +alias pbp='pbpaste' +alias pbpb='pbp | pb' +alias vu='vagrant up' +alias vs='vagrant suspend' +alias o='open' +alias oo='open .' +alias t='~/lib/t/t.py --task-dir="~/Dropbox/tasks" --list=tasks.txt' + +function psg() { + ps auxww | grep --color=always $* | grep -v grep | collapse | cuts -f 2,11- +} diff -r dbcbfa37f036 -r c82fca40999a fish/config.fish --- a/fish/config.fish Tue Oct 02 12:47:37 2012 +0300 +++ b/fish/config.fish Wed Oct 03 09:51:24 2012 -0400 @@ -24,7 +24,6 @@ alias et 'vim ~/.tmux.conf' alias eg 'vim ~/.gitconfig' - 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"' @@ -67,11 +66,34 @@ VBoxManage controlvm $argv poweroff end -function a -d "Run Ag with appropriate options." - if test -f '.agignorevcs' - ag -U $argv +set AG_BIN (which ag) +function actual_ag + # Fuck you fish this is fucking ridiculous. Let me use $AG_BIN as + # a command. Or at least give me a way to do it like run $AG_BIN args or + # something jesus. + if test $AG_BIN = '/usr/local/bin/ag' + /usr/local/bin/ag $argv else - ag $argv + if test $AG_BIN = '/usr/bin/ag' + /usr/bin/ag $argv + else + echo "Fish is a dick, sorry." + end + end +end +function ag -d "Run Ag with appropriate options." + if test -f '.agignore' + # Extra if statement because I can't figure out how to && things in + # a fish conditional and the documentation does not see fit to explain + # that little tidbit and can we please get a shell without complete + # bullshit as a scripting language syntax? + if grep -q 'pragma: skipvcs' '.agignore' + actual_ag --search-files -U $argv + else + actual_ag --search-files $argv + end + else + actual_ag --search-files $argv end end @@ -258,7 +280,10 @@ end # }}} +# Fortune {{{ if status --is-interactive command fortune -s | cowsay -n | lolcat end + +# }}} diff -r dbcbfa37f036 -r c82fca40999a keyremap4macbook/cadet.py --- a/keyremap4macbook/cadet.py Tue Oct 02 12:47:37 2012 +0300 +++ b/keyremap4macbook/cadet.py Wed Oct 03 09:51:24 2012 -0400 @@ -39,7 +39,7 @@ ('n', u'' , u'ℕ', u'', u''), ('o', u'∨', u'', u'', u''), ('r', u'√', u'ℝ', u'', u''), - ('t', u'⊢', u'⊥', u'', u''), + # ('t', u'⊢', u'⊥', u'', u''), ('u', u'∪', u'', u'', u''), ('x', u'⊻', u'', u'', u''), ('z', u'' , u'ℤ', u'', u''), diff -r dbcbfa37f036 -r c82fca40999a keyremap4macbook/private.xml --- a/keyremap4macbook/private.xml Tue Oct 02 12:47:37 2012 +0300 +++ b/keyremap4macbook/private.xml Wed Oct 03 09:51:24 2012 -0400 @@ -4,10 +4,73 @@ Space Cadet Mode This mode emulates a few of the features of the Space Cadet keyboard. + It also adds a few other helpful mappings. + It requires the Unicode Hex Input keyboard layout for the Greek and Math layers. + Force yourself to use the correct shift keys. + space_cadet.force_correct_shifts + + --KeyToKey-- KeyCode::Q, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::W, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::E, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::R, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::T, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::A, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::S, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::D, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::F, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::G, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::Z, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::X, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::C, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + --KeyToKey-- KeyCode::V, ModifierFlag::SHIFT_L, KeyCode::VK_NONE + + --KeyToKey-- KeyCode::Y, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::U, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::I, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::O, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::P, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::H, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::J, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::K, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::L, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::SEMICOLON, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::N, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::M, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::COMMA, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::DOT, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + --KeyToKey-- KeyCode::QUOTE, ModifierFlag::SHIFT_R, KeyCode::VK_NONE + + + Shifts to Parentheses + Shifts, when pressed alone, type parentheses. + When used with other keys they're normal shifts. + + space_cadet.shifts_to_parens + + + --KeyOverlaidModifier-- KeyCode::SHIFT_R, ModifierFlag::SHIFT_R | ModifierFlag::NONE, KeyCode::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L + --KeyOverlaidModifier-- KeyCode::SHIFT_L, ModifierFlag::SHIFT_L | ModifierFlag::NONE, KeyCode::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_R + + + --KeyToKey-- KeyCode::SHIFT_L, ModifierFlag::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_L + --KeyToKey-- KeyCode::SHIFT_R, ModifierFlag::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_L, KeyCode::KEY_0, ModifierFlag::SHIFT_L + + + --KeyToKey-- KeyCode::SPACE, ModifierFlag::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L, KeyCode::SPACE + + Remap Left Control to Hyper OS X doesn't have a Hyper. This maps Left Control to Control + Shift + Option + Command. + You can use this key in your own custom keyboard shortcuts you create in apps. space_cadet.left_control_to_hyper @@ -20,6 +83,42 @@ + Restore [Shift-]Opt-(Left/Right) + The Unicode Hex Input keyboard layout disables these keys for some reason. + + space_cadet.fix_opt_arrows + + + --KeyToKey-- + KeyCode::CURSOR_LEFT, VK_OPTION | VK_SHIFT, + + KeyCode::B, + ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L + + + --KeyToKey-- + KeyCode::CURSOR_LEFT, VK_OPTION, + + KeyCode::B, + ModifierFlag::OPTION_L | ModifierFlag::CONTROL_L + + + --KeyToKey-- + KeyCode::CURSOR_RIGHT, VK_OPTION | VK_SHIFT, + + KeyCode::F, + ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L + + + --KeyToKey-- + KeyCode::CURSOR_RIGHT, VK_OPTION, + + KeyCode::F, + ModifierFlag::OPTION_L | ModifierFlag::CONTROL_L + + + + Math Layer Right Control key activates the Math key layer. @@ -164,26 +263,6 @@ --KeyToKey-- - KeyCode::T, ModifierFlag::EXTRA3 | VK_SHIFT, - KeyCode::KEY_2, ModifierFlag::OPTION_L, - KeyCode::KEY_2, ModifierFlag::OPTION_L, - KeyCode::A, ModifierFlag::OPTION_L, - KeyCode::KEY_5, ModifierFlag::OPTION_L, - - - - - --KeyToKey-- - KeyCode::T, ModifierFlag::EXTRA3, - KeyCode::KEY_2, ModifierFlag::OPTION_L, - KeyCode::KEY_2, ModifierFlag::OPTION_L, - KeyCode::A, ModifierFlag::OPTION_L, - KeyCode::KEY_2, ModifierFlag::OPTION_L, - - - - - --KeyToKey-- KeyCode::U, ModifierFlag::EXTRA3, KeyCode::KEY_2, ModifierFlag::OPTION_L, KeyCode::KEY_2, ModifierFlag::OPTION_L, @@ -1037,81 +1116,5 @@ - - - - sjl Swap parens and brackets - private.swap_parens_and_brackets - --KeyToKey-- KeyCode::BRACKET_LEFT, ModifierFlag::NONE, KeyCode::KEY_9, ModifierFlag::SHIFT_R - --KeyToKey-- KeyCode::BRACKET_RIGHT, ModifierFlag::NONE, KeyCode::KEY_0, ModifierFlag::SHIFT_R - --KeyToKey-- KeyCode::KEY_9, ModifierFlag::SHIFT_L, KeyCode::BRACKET_LEFT - --KeyToKey-- KeyCode::KEY_0, ModifierFlag::SHIFT_L, KeyCode::BRACKET_RIGHT - - - - - - sjl Shifts to Parentheses - Shifts, when pressed alone, type parentheses. When used with other keys they're normal shifts. - - private.shifts_to_parens - - - --KeyOverlaidModifier-- KeyCode::SHIFT_R, ModifierFlag::SHIFT_R | ModifierFlag::NONE, KeyCode::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L - --KeyOverlaidModifier-- KeyCode::SHIFT_L, ModifierFlag::SHIFT_L | ModifierFlag::NONE, KeyCode::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_R - - - --KeyToKey-- KeyCode::SHIFT_L, ModifierFlag::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_L - --KeyToKey-- KeyCode::SHIFT_R, ModifierFlag::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_L, KeyCode::KEY_0, ModifierFlag::SHIFT_L - - - --KeyToKey-- KeyCode::SPACE, ModifierFlag::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L, KeyCode::SPACE - - - - - - sjl Use the correct goddamned shift keys. - private.fucking_shift_keys_how_do_they_work - - --KeyToKey-- KeyCode::Q, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::W, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::E, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::R, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::T, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::A, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::S, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::D, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::F, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::G, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::Z, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::X, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::C, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - --KeyToKey-- KeyCode::V, ModifierFlag::SHIFT_L, KeyCode::VK_NONE - - --KeyToKey-- KeyCode::Y, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::U, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::I, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::O, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::P, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::H, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::J, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::K, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::L, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::SEMICOLON, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::N, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::M, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::COMMA, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::DOT, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - --KeyToKey-- KeyCode::QUOTE, ModifierFlag::SHIFT_R, KeyCode::VK_NONE - - diff -r dbcbfa37f036 -r c82fca40999a moom/com.manytricks.Moom.plist Binary file moom/com.manytricks.Moom.plist has changed diff -r dbcbfa37f036 -r c82fca40999a mutt/muttrc --- a/mutt/muttrc Tue Oct 02 12:47:37 2012 +0300 +++ b/mutt/muttrc Wed Oct 03 09:51:24 2012 -0400 @@ -105,6 +105,7 @@ ignore * # ignore all headers unignore from: to: cc: date: subject: # show only these +unhdr_order * hdr_order from: to: cc: date: subject: # and in this order # }}} diff -r dbcbfa37f036 -r c82fca40999a vim/vimrc --- a/vim/vimrc Tue Oct 02 12:47:37 2012 +0300 +++ b/vim/vimrc Wed Oct 03 09:51:24 2012 -0400 @@ -981,7 +981,7 @@ " Ack {{{ nnoremap a :Ack! -let g:ackprg = 'a --nogroup --nocolor --column' +let g:ackprg = 'ag --nogroup --nocolor --column' " }}} " Autoclose {{{