dot

packages and services management
Log | Files | Refs | README

commit d7e6eea9ce7b2b1e9e715deb5c8b325849f811d2
parent 430b516438926569f7845292ecdc2817d1f9ab12
Author: josuah <mail@josuah.net>
Date:   Thu,  1 Sep 2016 23:57:17 +0200

Syncing mails!

Diffstat:
Mbin/comment | 32++++++++++++++++++++++++++++----
Aex-vi/build.sh | 3+++
Misync/.mbsyncrc | 27+++++++++++++++++++++++----
Mshell/.profile | 2+-
Dshell/.profile.swp | 0
Atmux/build.sh | 3+++
6 files changed, 58 insertions(+), 9 deletions(-)

diff --git a/bin/comment b/bin/comment @@ -9,30 +9,54 @@ help=' ' +NL=' +' while [ $# -gt 0 ] do case "$1" in - -t ) type="$2" - * ) printf '%s\n' + -t ) type="$2" ;; + * ) printf '%s\n' ;; + shift 1 esac done case "$(printf %s "$filetype" | tr [A-Z] [a-z])" in html | xml ) start='<!' middle='--' end='>' + ;; c | c++ | 'c#' | go | java | js ) start='/' middle='*' end='/' + ;; lua | sql ) middle='--' + ;; python | sh | bash | perl | ruby | r | rust | scala ) middle='#' + ;; haskell ) start='{' middle='-' end='}' + ;; ocaml | pascal ) start='(' middle='*' end=')' + ;; php ) start='<' middle='*' end='>' -lisp - + ;; +lisp ) + middle=';;' + ;; +* ) + printf 'Unknown file type\n' 1>&2 + exit 1 + ;; esac + +while IFS="$NL" read -r line +do + [ "$start" ] && printf '%s\n' "$start" + + printf "%$((${#start} + 1))s%s\n" "$middle" "$line" + + [ "$end" ] && printf "%((${#start} + 1))s\n" "$end" +done diff --git a/ex-vi/build.sh b/ex-vi/build.sh @@ -0,0 +1,3 @@ +# Fixed implementation of the original ex and vi + +tar=http://prdownloads.sourceforge.net/ex-vi/ex-050325.tar.bz2 diff --git a/isync/.mbsyncrc b/isync/.mbsyncrc @@ -1,18 +1,37 @@ -IMAPAccount gandi +IMAPAccount josuah.net Host mail.gandi.net User mail@josuah.net -PassCmd "sed -rn 's/password *(.*)/\\1/ p' \"$HOME/.netrc\"" IMAPStore gandi-remote -Account gandi +Account josuah.net MaildirStore gandi-local Path ~/Mail/ Inbox ~/Mail/INBOX -Channel gandi +Channel josuah.net Master :gandi-remote: Slave :gandi-local: Patterns * Create Both SyncState * + +IMAPAccount gmail +Host imap.gmail.com +User josuah.demangeon@gmail.com +UseIMAPS yes + +IMAPStore gmail-remote +Account gmail + +MaildirStore gmail-local +Path ~/GMail/ +Inbox ~/GMail/Inbox + +Channel gmail +Master :gmail-remote: +Slave :gmail-local: +Patterns * +Create Slave +Expunge Slave +Sync Pull diff --git a/shell/.profile b/shell/.profile @@ -35,7 +35,7 @@ export ALTERNATE_EDITOR='vi' export DVTM_EDITOR="$EDITOR" export VISUAL="$EDITOR" export FCEDIT="$EDITOR" -export PAGER='less -MFNIR' +export PAGER='less -FIRM' export BROWSER='retawq' export FILTER='peax' diff --git a/shell/.profile.swp b/shell/.profile.swp Binary files differ. diff --git a/tmux/build.sh b/tmux/build.sh @@ -0,0 +1,3 @@ +# The great tmux multiplexer + +tar=https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz