From: Mart Lubbers Date: Tue, 17 Apr 2018 05:42:44 +0000 (+0200) Subject: tmux, async email X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=3040d0ae9aefe3929082bfb0565e6de8910a7641;p=dotfiles.git tmux, async email --- diff --git a/email/.config/offlineimap/config b/email/.config/offlineimap/config index 0fd5652..1ccd752 100644 --- a/email/.config/offlineimap/config +++ b/email/.config/offlineimap/config @@ -7,6 +7,8 @@ ui = quiet [Account net] localrepository = Local remoterepository = Remote +autorefresh = 0.5 +quick = 10 postsynchook = notmuch new #proxy = SOCKS5:localhost:8008 @@ -22,6 +24,8 @@ remotehost = lubbers.email remoteuser = mart@martlubbers.net ssl = yes sslcacertfile = /etc/ssl/certs/ca-certificates.crt +keepalive = 60 +holdconnectionopen = yes [mbnames] enabled = yes diff --git a/email/.mutt/muttrc b/email/.mutt/muttrc index b197c42..5b4c18c 100644 --- a/email/.mutt/muttrc +++ b/email/.mutt/muttrc @@ -15,7 +15,7 @@ source ~/.mutt/mailboxes # Receiving, sending and searching set sendmail="/home/mrl/.mutt/checkattach.sh msmtp -C /home/mrl/.config/msmtp/config" set send_charset="us-ascii:utf-8" -macro index,pager $ "offlineimap &" "Force refresh" +macro index,pager $ "/home/mrl/.mutt/force_sync.sh" "Force refresh" macro attach B "firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"" send2-hook "~f mart@martlubbers.net" "set sendmail=\"msmtp -C /home/mrl/.config/msmtp/config -a net\"" send2-hook "~f m.lubbers@cs.ru.nl" "set sendmail=\"msmtp -C /home/mrl/.config/msmtp/config -a ru\"" diff --git a/shell/.bashrc b/shell/.bashrc index bce6795..6e186aa 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -32,6 +32,8 @@ alias grep='grep --color=auto' alias vi=vim alias tmux='tmux -f ~/.config/tmux/config' +. /etc/bash_completion + set_prompt(){ last_c=$? PS1='\u@\h' diff --git a/shell/.config/tmux/config b/shell/.config/tmux/config index f02f3a2..7bf6ba8 100644 --- a/shell/.config/tmux/config +++ b/shell/.config/tmux/config @@ -11,6 +11,9 @@ bind l select-pane -R # i3 window splitting unbind % -unbind " -bind v split-window -v -bind h split-window -h +unbind '"' +bind V split-window -v +bind H split-window -h + +# Start not at index 0 but at one for windows +set -g base-index 1