dot

packages and services management
Log | Files | Refs | README

commit cb494b47780df8333d87f79a9929a80e2bc8adad
parent 3b8ff537961c94d804b865b83be7a22b4a2db5dc
Author: josuah <mail@josuah.net>
Date:   Sat, 27 Aug 2016 14:47:19 +0200

Merge branch 'master' of https://github.com/sshbio/Config

Diffstat:
Mbin/src | 2+-
Abin/swiper | 23+++++++++++++++++++++++
Misync/.mbsyncrc | 2+-
Mshell/.profile | 1-
4 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/bin/src b/bin/src @@ -100,7 +100,7 @@ download() esac tmp="$(mktemp -d)" - wget -O - "$tar" | tar -xv"$taroption" -f - -C "$tmp" 2>&1 | : + wget -O - "$tar" | tar -xv"$taroption" -f - -C "$tmp" mkdir -p "$PROGRAMS/$name" mv "$tmp/"* "$PROGRAMS/$name/src" diff --git a/bin/swiper b/bin/swiper @@ -0,0 +1,23 @@ +#!/bin/sh +# __ +# ____ __ /\ \/ ____ ___ _____ +# / __// /\/ / /\ / __ \ .'__ \ / ____\ +# __\ \ / / / / / // /_/ // ____// / +# \___/ \____/ \// ____/ \___\ \/ - a search with an overview. +#=================\/================================================ + +FILTER=fzy +i=0 + +[ ! -f $1 ] && printf 'USAGE:\tswiper [file]\n' + +{ + [ "$1" ] && tee < $1 || tee +} | while read -r line +do + i=$(($i + 1)) + printf '%6s %s\n' "$i" "$line" +done | $FILTER | { + read -r number line + printf '%s\n' "$number" +} diff --git a/isync/.mbsyncrc b/isync/.mbsyncrc @@ -1,6 +1,6 @@ IMAPAccount gandi Host mail.gandi.net -User mail@josuah.net +User jd@ssh.bio PassCmd "sed -rn 's/password *(.*)/\\1/ p' \"$HOME/.netrc\"" IMAPStore gandi-remote diff --git a/shell/.profile b/shell/.profile @@ -69,7 +69,6 @@ alias p='pwd' alias weather='curl -4 wttr.in' alias lines='find . -name "*.[ch]" | xargs wc -l' alias myip='curl icanhazip.com' -alias c='clear' alias a='attach' alias r='run' alias v="run $VISUAL"