dot

packages and services management
Log | Files | Refs | README

commit de77525df15162fa3ed057469bbf53335cc6bbc1
parent cb494b47780df8333d87f79a9929a80e2bc8adad
Author: josuah <mail@josuah.net>
Date:   Sat, 27 Aug 2016 16:03:16 +0200

Small changes

Diffstat:
Abin/complete | 26++++++++++++++++++++++++++
Mbin/irc | 7+++++--
Mvim/.vimrc | 8+++++++-
Mvim/build.sh | 9++++-----
4 files changed, 42 insertions(+), 8 deletions(-)

diff --git a/bin/complete b/bin/complete @@ -0,0 +1,26 @@ +#!/bin/sh +# /\ /\ +# ____ ____ ________ ____ / / ___ / /_ ___ +# / ___\ / __ \ / __ __ \ / __ \ / /.'__ \ / ___\.'__ \ +# / /__ / /_/ // / / / / // /_/ // // ____// / / ____/ +# \____\ \____/ \/ \/ \// ____/ \/ \___\ \/ \___\ - with word in a file +#=========================\/==================================================== +# +# print a list of words that can be candidates for a completion +# +# USAGE: +# complete PREFIX +# +# PREFIX part to match from the words, and to remove from the candidates. +# +# + +NL=' +' + +sed 's/[[:space:]]/\n/g' | sort -u #| while read word +#do [ -z "${word##$prefix*}" ] && printf '%s\n' "$word" +#done | fzy | { +# IFS="$NL" read -r word +# printf '%s\n' "${word#$prefix}" +#} diff --git a/bin/irc b/bin/irc @@ -39,7 +39,8 @@ connect() mkdir -p "$srv" [ -p "$srv/IN" ] || mkfifo "$srv/IN" - tail -f "$srv/IN" | nc "$srv" 6667 | output "$srv" & + # `tee ... RAW` is for debugging, you can remove it. + tail -f "$srv/IN" | nc "$srv" 6667 | tee -a "$srv/RAW" | output "$srv" & write "$srv" "NICK $user" write "$srv" "USER $(whoami) +i * :$FULLNAME" @@ -90,7 +91,9 @@ input() write "$srv" "TOPIC ${arg-chan}" ;; ID | IDENTIFY ) - printf '\033[A\r\033[K> /IDENTIFY *****\n' 1>&2 + printf '\033[A\r\033[K' 1>&2 + printf ' \033[30;1m%s %s\033[0;1m > \033[0m' "$srv" "$chan" 1>&2 + printf '/IDENTIFY *****\n' 1>&2 write "$srv" "PRIVMSG NickServ :IDENTIFY $arg" ;; '' ) diff --git a/vim/.vimrc b/vim/.vimrc @@ -9,8 +9,14 @@ " OPTIONS "------------------------------------------------------------------------------- +" Behavior set autoindent copyindent -set ruler number list listchars=tab:\|\ ,eol:$ + +" Text display +set showmatch list listchars=tab:\|\ ,eol:$ + +" Interface +set ruler number colorcolumn=80 " MAPPINGS diff --git a/vim/build.sh b/vim/build.sh @@ -5,11 +5,11 @@ tar=https://github.com/vim/vim/archive/master.tar.gz build() { ./configure \ - --with-features=tiny \ - --disable-gui \ - --without-x \ + --with-features=small \ + --disable-gui \ + --without-x \ --without-gnome \ --prefix="$PREFIX" make install -}- \ No newline at end of file +}