dot

packages and services management
Log | Files | Refs | README

commit 8e3f39637b6d9d99f4a119c3836e2fc6587fc953
parent 7991ee0967d22a6861d98795de17fb5375e831fc
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon,  9 Apr 2018 20:46:59 +0200

update man pages

Diffstat:
Abin/colordiff | 20++++++++++++++++++++
Mbin/epih | 2+-
Mbin/mfilter | 6+++---
Mbin/startsvdir | 5++++-
Mman/README.7 | 5+----
Mman/agenda.1 | 49++++++++++++++++++++++++++-----------------------
Arun/u9fs-ssh/port | 1+
Mrun/u9fs-ssh/run | 3++-
Mssh/config | 4++++
9 files changed, 62 insertions(+), 33 deletions(-)

diff --git a/bin/colordiff b/bin/colordiff @@ -0,0 +1,20 @@ +#!/usr/bin/awk -f + +/^-/ { + print "\x1b[31m" $0 "\x1b[m"; + next; +} + +/^\+/ { + print "\x1b[32m" $0 "\x1b[m"; + next; +} + +/^@/ { + print "\x1b[34m" $0 "\x1b[m"; + next; +} + +{ + print; +} diff --git a/bin/epih b/bin/epih @@ -2,7 +2,7 @@ cat << EOF /* -** EPITECH PROJECT, 2017 +** EPITECH PROJECT, 2018 ** $(basename "$(dirname "$(cd "$(git rev-parse --git-dir)"; pwd)")") ** File description: ** Copyright $(date +%Y) (c) Danny Boon. All rights reserved. diff --git a/bin/mfilter b/bin/mfilter @@ -4,12 +4,12 @@ MBLAZE="${MBLAZE-$HOME/.mblaze}" -minc "$HOME/var/mail/INBOX" > "$HOME/.config/mblaze/seq.mfilter" +minc "$HOME/var/mail/INBOX" > "$MBLAZE/seq.mfilter" [ "$1" = '-a' ] && - mdirs "$HOME/var/mail" | mlist > "$HOME/.config/mblaze/seq.mfilter" + mdirs "$HOME/var/mail" | mlist > "$MBLAZE/seq.mfilter" -sed 's/#.*//; /^[[:space:]]*$/ d' "$HOME/.config/mblaze/filter" | +sed 's/#.*//; /^[[:space:]]*$/ d' "$MBLAZE/filter" | while read -r dir header glob do mkdir -p "$HOME/var/mail/$dir/cur" \ diff --git a/bin/startsvdir b/bin/startsvdir @@ -2,4 +2,7 @@ pad=............................................................................ -pgrep -f "runsvdir -P $SVDIR" || runsvdir -P "$SVDIR" "$pad$pad$pad" +if ! pgrep -f "runsvdir -P $SVDIR" +then + runsvdir -P "$SVDIR" "$pad$pad$pad" & +fi diff --git a/man/README.7 b/man/README.7 @@ -66,7 +66,7 @@ their configuration file. .Xr pack 8 build resources. . -.It Pa runit/ +.It Pa run/ .Xr runit 8 services directory, symlinked into the .Pa $SVDIR/ , @@ -81,9 +81,6 @@ Contains scripts collection to maintain the configuration and more. Contains manual pages for utilities developed inside of .Pa bin/ . . -.It Pa skel/ -Contains files to be manually copied in-place and then edited. -. .It Pa .* Files to be symlinked into the home directory, with exception of .Pa .git . diff --git a/man/agenda.1 b/man/agenda.1 @@ -11,9 +11,10 @@ . .Sh SYNOPSIS . -.Nm Ic add Ar name Ar YYYY/MM/DD Ar HH:MM Oo Ar YYYY/MM/DD Oc Ar HH:MM -.Nm Ic import Ar ics_file Ar name Op +- Ns Ar HH -.Nm Op Ar name Op Ar sort +.Nm +.Nm Ar name Op Ar sort +.Nm Ar name Ar YYYY/MM/DD Ar HH:MM Oo Ar YYYY/MM/DD Oc Ar HH:MM +.Nm Ar name Ar Ic import ics_file Op +- Ns Ar HH . . .Sh DESCRIPTION @@ -29,7 +30,27 @@ file. . .Bl -tag -width indent . -.It Nm Ic add Ar name Ar YYYY/MM/DD Ar HH:MM Oo Ar YYYY/MM/DD Oc Ar HH:MM +.It Nm +List the agendas available in +.Ev AGENDA . +. +.It Nm Ar name Op Ar sort +Display the agenda +.Ar name +to standard output with events sorted according to the +.Ar sort +characters +.Po +.Ql BECLS +by default +.Pc : +.Do B Dc Ns egin, +.Do E Dc Ns nd, +.Do S Dc Ns ummary, +.Do C Dc Ns ategory, +.Do L Dc Ns ocation +. +.It Nm Ar name Ar YYYY/MM/DD Ar HH:MM Oo Ar YYYY/MM/DD Oc Ar HH:MM Create a new .Xr agenda 5 entry in the @@ -39,7 +60,7 @@ with specified start and end date and open this file with an editor. If the end date is ommited, the end date is set to the same day as the begin day. . -.It Nm Ic import Ar ics_file Ar name Op +- Ns Ar HH +.It Nm Ar name Ic import Ar ics_file Op +- Ns Ar HH Convert .Ar ics_file to the @@ -53,24 +74,6 @@ is the timezone offset of the agenda imported, optionnaly preceded by a or .Ql + . . -.It Nm Op Ar name Op Ar sort -If -.Ar name -is ommited, the agendas are listed, otherwise, display the agenda -.Ar name -to standard output with events sorted according to the -.Ar sort -characters -.Po -.Ql BECLS -by default -.Pc : -.Do B Dc Ns egin, -.Do E Dc Ns nd, -.Do S Dc Ns ummary, -.Do C Dc Ns ategory, -.Do L Dc Ns ocation -. .El . . diff --git a/run/u9fs-ssh/port b/run/u9fs-ssh/port @@ -0,0 +1 @@ +22 diff --git a/run/u9fs-ssh/run b/run/u9fs-ssh/run @@ -6,8 +6,9 @@ exec 2>&1 IFS='' read -r sock <sock IFS='' read -r host <host +IFS='' read -r port <port IFS='' read -r user <user IFS='' read -r path <path-src -exec unixserver -v "$sock" ssh "$user@$host" '. ./.profile;' \ +exec unixserver -v "$sock" ssh -p "$port" "$user@$host" '. ./.profile;' \ u9fs -a none -u "$user" "'$path'" diff --git a/ssh/config b/ssh/config @@ -4,6 +4,9 @@ host * host ::1 IdentityFile /mnt/key/josuah.key +host localhost + IdentityFile /mnt/key/josuah.key + host 127.0.0.1 IdentityFile /mnt/key/josuah.key @@ -30,3 +33,4 @@ host github.com host git.epitech.eu IdentityFile /mnt/key/epitech.eu.key + ConnectTimeout 3