dot

packages and services management
Log | Files | Refs | README

commit 0c5dc24550e018c4c54cec0e580f3b124c53fa7a
parent 3a6e316d186aceee7b704f18c1d881a4f872d910
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Fri, 11 Aug 2017 16:30:56 +0200

ex-vi: ex-vi has a very weird.  goodbye

Diffstat:
Dex-vi/.exrc | 5-----
Dex-vi/build | 15---------------
Dex-vi/profile | 12------------
Dex-vi/tar | 1-
Miomenu/bin/io | 6+++---
Miomenu/bin/io-cache | 84++++++++++++++++++++++++++++++++++++++++----------------------------------------
Mshell/profile | 2+-
7 files changed, 46 insertions(+), 79 deletions(-)

diff --git a/ex-vi/.exrc b/ex-vi/.exrc @@ -1,5 +0,0 @@ -set showmode -set showmatch -set autoindent -set shell=/bin/sh -map g 1G diff --git a/ex-vi/build b/ex-vi/build @@ -1,15 +0,0 @@ -sed -r 's|^(#define +TUBECOLS *) 160|\1 1000|' config.h > config.h.tmp -mv config.h.tmp config.h - -awk -v VAR="$VAR" ' - /^PRESERVEDIR/ { sub("/var/preserve", VAR "/ex-vi") } - { print } -' Makefile > Makefile.tmp -mv Makefile.tmp Makefile - -make - -mkdir -p "$PREFIX/bin" "$PREFIX/share/man/man1" -cp ex "$PREFIX/bin/ex" -cp ex "$PREFIX/bin/vi" -cp ex.1 vi.1 "$PREFIX/share/man/man1" diff --git a/ex-vi/profile b/ex-vi/profile @@ -1,12 +0,0 @@ -TERMCAP='linux|st-256color|screen-256color|tmux-256color|xterm-256color \ - :do=^J:co#80:li#24:cl=50\E[;H\E[2J: \ - :le=^H:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A: \ - :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m: \ - :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H: \ - :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>: \ - :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H: \ - :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3: \ - :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:vs=\E[?7l:ve=\E[?7h: \ - :mi:al=\E[L:dc=\E[P:dl=\E[M:ei=\E[4l:im=\E[4h:' - -export TERMCAP TERM_CAP="$TERMCAP" diff --git a/ex-vi/tar b/ex-vi/tar @@ -1 +0,0 @@ -http://prdownloads.sourceforge.net/ex-vi/ex-050325.tar.bz2 diff --git a/iomenu/bin/io b/iomenu/bin/io @@ -10,7 +10,7 @@ touch "$HOME/.abduco/names" grep -F -e "$( abduco | awk -F '\t' 'NR > 1 { print $3 }' -)" "$HOME/.abduco/names" | sort -ouk 2,2 "$HOME/.abduco/names" +)" "$HOME/.abduco/names" | sort -uk 2,2 -o "$HOME/.abduco/names" # --- arguments ---------------------------------------------------------------- @@ -34,8 +34,8 @@ fi hash=$(printf %s "$path" | cksum | cut -d ' ' -f 1) -printf '%s %s\n' "$hash" "$path" >> "$HOME/.abduco/names" -sort -ouk 2,2 "$HOME/.abduco/names" "$HOME/.abduco/names" +printf '%s %s\n' "$hash" "$path" >> "$HOME/.abduco/names" +sort -uk 2,2 "$HOME/.abduco/names" -o "$HOME/.abduco/names" # --- attach ------------------------------------------------------------------- diff --git a/iomenu/bin/io-cache b/iomenu/bin/io-cache @@ -1,4 +1,4 @@ -# produce a list of arguments for commands in headers, such as editor and files + mkdir -p "$VAR/cache" touch "$VAR/cache/io" @@ -8,61 +8,61 @@ find "$HOME" \ -path "*/.hg/*" -prune -o \ -path "${MAIL%/*}/*/*" -prune -o \ -type d -exec printf '%s/\n' {} + -o \ - -print 2> /dev/null | sort | { + -print 2> /dev/null | sort | - awk -v MAIL="${MAIL%/*}" ' +awk -v MAIL="${MAIL%/*}" ' - $0 ~ ENVIRON["VAR"] "/irc/.*/$" { - ircv[ircc++] = $0 - } + $0 ~ ENVIRON["VAR"] "/irc/.*/$" { + ircv[ircc++] = $0 + } - $0 ~ MAIL "/*/" { - mailv[mailc++] = $0 - } + $0 ~ MAIL "/*/" { + mailv[mailc++] = $0 + } - $0 ~ "/[.]git/$" || - $0 ~ "/src/[^/]*/$" && - $0 !~ "/git/.*/src/" && - $0 !~ "/src/.*/src/" { - sub("/[.]git/$", "/") - searchv[searchc++] = $0 - } + $0 ~ "/[.]git/$" || + $0 ~ "/src/[^/]*/$" && + $0 !~ "/git/.*/src/" && + $0 !~ "/src/.*/src/" { + sub("/[.]git/$", "/") + searchv[searchc++] = $0 + } - $0 ~ VAR "/music" { - musicv[musicc++] = $0 - } + $0 ~ VAR "/music" { + musicv[musicc++] = $0 + } - $0 ~ ".*\\.[1-9]p?(.gz)?$" { - manv[manc++] = $0 - } + $0 ~ ".*\\.[1-9]p?(.gz)?$" { + manv[manc++] = $0 + } - $0 !~ "/$" { - filesv[filesc++] = $0 - } + $0 !~ "/$" { + filesv[filesc++] = $0 + } - END { - print "# ii-client" - for (i = 0; i < ircc; i++) print(ircv[i] ) + END { + print "# ii-client" + for (i = 0; i < ircc; i++) print(ircv[i] ) - print "# io-mail" - for (i = 0; i < mailc; i++) print(mailv[i] ) + print "# io-mail" + for (i = 0; i < mailc; i++) print(mailv[i] ) - print "# io-search" - for (i = 0; i < searchc; i++) print(searchv[i]) + print "# io-search" + for (i = 0; i < searchc; i++) print(searchv[i]) - print "# io-music" - for (i = 0; i < musicc; i++) print(musicv[i] ) + print "# io-music" + for (i = 0; i < musicc; i++) print(musicv[i] ) - print "# mandoc -a" - for (i = 0; i < manc; i++) print(manv[i] ) + print "# mandoc -a" + for (i = 0; i < manc; i++) print(manv[i] ) - print "# " ENVIRON["EDITOR"] - for (i = 0; i < filesc; i++) print(filesv[i] ) - } + print "# " ENVIRON["EDITOR"] + for (i = 0; i < filesc; i++) print(filesv[i] ) + } +' > "$VAR/cache/io" - ' +{ printf '# uri\n' cat "$HOME/lib/url"/* "$PKG/lib/url" cut -d ' ' -f 1 "$HOME/.ssh/known_hosts" | sed -r 's|^|ssh://root@|' - -} > "$VAR/cache/io" +} >> "$VAR/cache/io" diff --git a/shell/profile b/shell/profile @@ -15,5 +15,5 @@ export NICK='josuah' export MAIL="$HOME/var/mail/INBOX" export EMAIL='mail@josuah.net' -export EDITOR=vi VISUAL=$EDITOR +export EDITOR=vim VISUAL=$EDITOR export PAGER=less MANPAGER=$PAGER