Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Moar.

  • Loading branch information...
commit deee914a5e0868fe2c93216cc6dc372f45c708d3 1 parent 596c88e
Steve Losh authored
5 bash_profile
... ... @@ -1,5 +1,8 @@
1 1 #!/usr/bin/env bash
2 2
  3 +shopt -s expand_aliases
  4 +
  5 +
3 6 # This file contains aliases and functions that duplicate some fish
4 7 # functionality, because Vim will use bash as its external command shell.
5 8
@@ -10,3 +13,5 @@ function a() {
10 13 ag $*
11 14 fi
12 15 }
  16 +
  17 +export PATH=~/bin:~/lib/dotfiles/bin:/usr/local/share/python:$PATH
4 bin/addcontact
@@ -25,6 +25,10 @@ osascript -e "tell application \"Address Book\"" \
25 25 -e " set contactEmailLabel to firstEmailParam" \
26 26 -e " set contactEmail to secondEmailParam" \
27 27 -e " end if" \
  28 +-e " set bracketOffset to (offset of \"<\" in contactEmail)" \
  29 +-e " if (bracketOffset is not equal to 0) then" \
  30 +-e " set contactEmail to text 2 thru -2 of contactEmail" \
  31 +-e " end if" \
28 32 -e " if (contactEmailLabel is equal to \"\") then" \
29 33 -e " set contactEmailLabel to \"Home\"" \
30 34 -e " end if" \
1  bin/mutt-notmuch-py
4 fish/config.fish
@@ -30,7 +30,7 @@ alias spotlight-on 'sudo mdutil -a -i on ; and sudo mv /System/Library/CoreServi
30 30 alias spotlight-wat 'sudo fs_usage -w -f filesys mdworker | grep "open"'
31 31
32 32 set MUTT_BIN (which mutt)
33   -alias mutt "bash -c 'cd ~/Desktop; $MUTT_BIN'"
  33 +alias mutt "bash --login -c 'cd ~/Desktop; $MUTT_BIN'"
34 34
35 35 alias h 'hg'
36 36 alias g 'git'
@@ -166,7 +166,7 @@ function virtualenv_prompt
166 166 end
167 167
168 168 function hg_prompt
169   - # hg prompt --angle-brackets $hg_promptstring 2>/dev/null
  169 + hg prompt --angle-brackets $hg_promptstring 2>/dev/null
170 170 end
171 171
172 172 function git_prompt
BIN  moom/com.manytricks.Moom.plist
Binary file not shown
1  mutt/mailcap
@@ -18,6 +18,7 @@ application/vnd.ms-excel; ~/.mutt/view_attachment.sh %s
18 18 application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app'
19 19
20 20 # Images
  21 +image/jpg; ~/.mutt/view_attachment.sh %s jpg
21 22 image/jpeg; ~/.mutt/view_attachment.sh %s jpg
22 23 image/pjpeg; ~/.mutt/view_attachment.sh %s jpg
23 24 image/png; ~/.mutt/view_attachment.sh %s png
51 mutt/muttrc
@@ -125,6 +125,7 @@ mailboxes +steve-stevelosh.com/INBOX \
125 125 +steve-stevelosh.com/archive \
126 126 +steve-stevelosh.com/sent \
127 127 +steve-stevelosh.com/drafts \
  128 + +temporary/search \
128 129
129 130 # Other special folders.
130 131 set mbox = "+steve-stevelosh.com/archive"
@@ -144,30 +145,10 @@ unset record
144 145 # }}}
145 146 # Key Bindings {{{
146 147
147   -# Unbind Stupid Keys {{{
148   -
149   -bind index,pager \# noop
150   -bind index i noop
151   -bind index w noop
152   -
153   -# }}}
154   -# Pager {{{
155   -
156   -bind pager i exit
157   -bind pager / search
158   -bind pager k previous-line
159   -bind pager j next-line
160   -bind pager gg top
161   -bind pager G bottom
162   -bind pager R group-reply
163   -
164   -macro pager \Cu "|urlview<enter>" "call urlview to open links"
165   -macro pager s "<pipe-message>cat > ~/Desktop/" "save message as"
166   -
167   -# }}}
168 148 # Index {{{
169 149
170   -bind index R group-reply
  150 +bind index \# noop
  151 +bind index R group-reply
171 152 bind index <tab> sync-mailbox
172 153 bind index k previous-entry
173 154 bind index j next-entry
@@ -175,15 +156,12 @@ bind index gg first-entry
175 156 bind index G last-entry
176 157 bind index p recall-message
177 158 bind index <space> collapse-thread
  159 +bind index N search-opposite
178 160 macro index s "<pipe-message>cat > ~/Desktop/" "save message as"
179 161
180 162 # Mark all as read
181 163 macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
182 164
183   -# Quickly change date formats
184   -macro index <esc>f ":set date_format = \"%m/%d\"<enter>" "short date format"
185   -macro index <esc>F ":set date_format = \"%m/%d at %I:%M %P\"<enter>" "long date format"
186   -
187 165 # Sync email
188 166 macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
189 167 macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox"
@@ -196,13 +174,28 @@ macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
196 174 macro index \' "<change-folder>+steve-stevelosh.com/INBOX<enter>" "go to stevelosh/INBOX"
197 175 macro index \" "<change-folder>+steve-stevelosh.com/archive<enter>" "go to stevelosh/archive"
198 176
199   -# Just use notmuch for everything
200   -macro index / "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | tr '+' '.' | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
  177 +# Search with notmuch
  178 +macro index S "<enter-command>unset wait_key<enter><shell-escape>mutt-notmuch-py -G ~/.mail/temporary/search<enter><change-folder-readonly>+temporary/search<enter>" "search mail (using notmuch)"
201 179
202   -# Unlimit aka show [a]ll
  180 +# Unlimit (show [a]ll)
203 181 macro index a "<limit>all\n" "show all messages (undo limit)"
204 182
205 183 # }}}
  184 +# Pager {{{
  185 +
  186 +bind pager \# noop
  187 +bind pager k previous-line
  188 +bind pager j next-line
  189 +bind pager gg top
  190 +bind pager G bottom
  191 +
  192 +bind pager R group-reply
  193 +bind pager N search-opposite
  194 +
  195 +macro pager \Cu "|urlview<enter>" "call urlview to open links"
  196 +macro pager s "<pipe-message>cat > ~/Desktop/" "save message as"
  197 +
  198 +# }}}
206 199 # Compose {{{
207 200
208 201 bind compose p postpone-message
4 vim/custom-dictionary.utf-8.add
@@ -87,3 +87,7 @@ signoffs
87 87 SubtitleLanguage
88 88 SubtitleLanguages
89 89 signoff
  90 +offline
  91 +bikeshed
  92 +bikesheds
  93 +inbox
10 vim/vimrc
@@ -760,12 +760,6 @@ augroup ft_html
760 760 " Use <localleader>t to fold the current templatetag.
761 761 au FileType html,jinja,htmldjango nmap <buffer> <localleader>t viikojozf
762 762
763   - " Smarter pasting
764   - au FileType html,jinja,htmldjango nnoremap <buffer> p :<C-U>YRPaste 'p'<CR>v`]=`]
765   - au FileType html,jinja,htmldjango nnoremap <buffer> P :<C-U>YRPaste 'P'<CR>v`]=`]
766   - au FileType html,jinja,htmldjango nnoremap <buffer> π :<C-U>YRPaste 'p'<CR>
767   - au FileType html,jinja,htmldjango nnoremap <buffer> ∏ :<C-U>YRPaste 'P'<CR>
768   -
769 763 " Indent tag
770 764 au FileType html,jinja,htmldjango nnoremap <buffer> <localleader>= Vat=
771 765
@@ -956,8 +950,8 @@ augroup END
956 950
957 951 augroup ft_steveloshcom
958 952 au!
959   - au BufRead,BufNewFile */stevelosh/content/blog/20*/*/*.html set ft=markdown
960   - au BufRead,BufNewFile */stevelosh/content/projects/*.html set ft=markdown
  953 + au BufRead,BufNewFile */stevelosh/content/blog/20*/*/*.html set ft=markdown spell
  954 + au BufRead,BufNewFile */stevelosh/content/projects/*.html set ft=markdown spell
961 955 augroup END
962 956
963 957 " }}}

0 comments on commit deee914

Please sign in to comment.
Something went wrong with that request. Please try again.