...
 
#!/bin/sh
if [ $(/usr/bin/nm-online -q -t 15; echo $?) == 0 ]; then
/usr/bin/offlineimap $@
else
echo "Network unreachable. Aborting."
fi
#!/bin/bash
account=$([ -z $1 ] && echo "fnux" || echo $1)
/usr/bin/neomutt -F $HOME/.local/etc/neomutt/account.$account
[Unit]
Description=Offlineimap full synchronization
[Service]
Type=simple
ExecStart=%h/.local/bin/imapsync
[Unit]
Description=Run imapsync-full every 5 hours
After=network.target
[Timer]
OnBootSec=2min
OnUnitActiveSec=5h
[Install]
WantedBy=timers.target
[Unit]
Description=Offlineimap quick synchronization
[Service]
Type=simple
ExecStart=%h/.local/bin/imapsync -q
[Unit]
Description=Run imapsync-quick every 15 minutes
After=network.target
[Timer]
OnBootSec=30s
OnUnitActiveSec=15min
[Install]
WantedBy=timers.target
......@@ -53,8 +53,11 @@ NeoBundle 'sheerun/vim-polyglot'
NeoBundle 'vim-airline/vim-airline'
NeoBundle 'vim-airline/vim-airline-themes'
NeoBundle 'kien/rainbow_parentheses.vim'
NeoBundle 'vim-syntastic/syntastic'
NeoBundle 'Shougo/unite.vim'
"NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'Shougo/neomru.vim'
NeoBundle 'Shougo/vimproc.vim'
NeoBundle 'tpope/vim-fugitive'
" Initial run requires NeoBundleInstall, as a simple 'Check' won't suffice:
if g:bundleinit
......@@ -142,7 +145,6 @@ nnoremap <silent><leader>e $
" Toggle 'paste' with ,p.
nnoremap <leader>p :set invpaste paste?<CR>
set pastetoggle=<leader>p
" Neosnippet key-mappings.
imap <C-k> <Plug>(neosnippet_expand_or_jump)
......@@ -158,9 +160,9 @@ smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
" Unite
nmap <leader>b :Unite buffer -start-insert <CR>
nmap <leader>e :Unite file_rec/async file_mru -start-insert <CR>
nmap <leader>E :Unite file_mru -start-insert <CR>
nmap <leader>b :Unite buffer <CR>
nmap <leader>e :Unite file_rec/async -start-insert <CR>
nmap <leader>E :Unite file_rec/async file_mru -start-insert <CR>
nmap <leader>c :Unite change -start-insert <CR>
nmap <leader>j :Unite jump -auto-preview <CR>
nmap <Leader>t :Unite tag -start-insert <CR>
......