dot

packages and services management
Log | Files | Refs | README

commit e38e6aca3be5145438248d840c736bfc3353558e
parent 869c5f65931097ac74473684a9c760ebe3a909c6
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Tue, 21 Mar 2017 18:02:13 +0100

visual / line oriented editor

Diffstat:
M.exrc | 2--
M.profile | 3++-
M.xinitrc | 1+
Mbin/io-abduco | 2++
Rbin/io-edit -> bin/io-file | 0
Mbin/io-setfont | 6+-----
Mman/www-tree.1 | 23++++++++++++-----------
7 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/.exrc b/.exrc @@ -1,3 +1 @@ set number - -map g 1G diff --git a/.profile b/.profile @@ -34,6 +34,7 @@ PS1='$( printf "\n\033[0;1;30m%s\033[m%s" "$pwd" "$(git-status)" [ "$SSH_CONNECTION" ] && printf " %s" "$(hostname)" + [ "$ABDUCO" ] && printf " %s" "$ABDUCO" [ "$error" -gt 0 ] && printf " \033[1;31m%s\033[m" "$error" printf "\n\$ " )' @@ -50,9 +51,9 @@ alias ..='cd ..' alias j='jobs' # iomenu +alias v='EDITOR="less -N" io-file' alias a='io-abduco' alias r='io-run' -alias e='io-edit' alias f='find ! -path "*/.git/*" -type f | iomenu -l 255' alias d='find ! -path "*/.git/*" -type d | iomenu -l 255' alias c='cd "$(io-path)"' diff --git a/.xinitrc b/.xinitrc @@ -1,6 +1,7 @@ #!/bin/sh setxkbmap us -option compose:lalt +xset +fp "$CONFIG/fonts" while xsetroot -name "$(status)" do diff --git a/bin/io-abduco b/bin/io-abduco @@ -8,6 +8,8 @@ fi name="$(abduco | tail -n +2 | iomenu -l 10 | sed -r 's/[^\t]*\t[^\t]*\t//')" +printf '\033[H\033[J' + [ "$SSH_CLIENT$SSH_TTY$SSH_CONNECTION" ] && e='^\' || e='^Z' [ "$name" ] && ABDUCO="$name" exec abduco -e "$e" -A "$name" "$SHELL" diff --git a/bin/io-edit b/bin/io-file diff --git a/bin/io-setfont b/bin/io-setfont @@ -1,11 +1,7 @@ # set tty font using iomenu -l 255 setfont "$( - while IFS='' read dir - do - [ -d "$dir" ] && find "$dir" -type f | sort - - done <<EOF | $FILTER + xargs -I {} find {} -type f << EOF | sort | iomenu -l 255 /usr/share/kbd/consolefonts /usr/share/consolefonts /share/kbd/consolefonts diff --git a/man/www-tree.1 b/man/www-tree.1 @@ -1,10 +1,10 @@ .Dd $Mdocdate: November 11 2016$ -.Dt WWW 1 +.Dt WWW-TREE 1 .Os .Sh NAME . -.Nm www -.Nd static website generator kept as simple as possible +.Nm www-tree +.Nd simple, recursive static website generator . .Sh SYNOPSIS . @@ -14,11 +14,6 @@ . .Sh DESCRIPTION . -.Bl -tag -.It path -Source directory from which generate the website. It is also where the website -will be generated. -.El .Pp The only thing this script does is building one index.html for each directory, including @@ -49,9 +44,7 @@ keyword. All .Sy directories starting with a -.So -\&. -.Sc +.Sq Li "." will be ignored. .El .Pp @@ -79,6 +72,14 @@ Relative path to the root of the website, for relative links. Page title, given by the path, with "/" replaced by " > ". .El . +.Sh ENVIRONMENT +. +.Bl -tag +.It PWD +Source directory from which generate the website. It is also where the website +will be generated. +.El +. .Sh SEE ALSO . .Pa http://marmaro.de