dot

packages and services management
Log | Files | Refs | README

commit 6d7d6e33ccbe96031d4b591ac0492a7630eb1db9
parent 78fdbe12bd14397a63ba879982bddc73c30c9152
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Mon, 27 Mar 2017 00:24:07 +0200

added mg

Diffstat:
Mbin/fun-piano | 5+++--
Mbin/io-edit | 2+-
Mbin/io-path | 2+-
Abuild/mg | 9+++++++++
4 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/bin/fun-piano b/bin/fun-piano @@ -1,6 +1,6 @@ -#!/usr/bin/awk -f # console piano using speaker-test +awk ' BEGIN { # qwerty @@ -121,7 +121,7 @@ BEGIN { system("stty -raw echo"); close(cmd); - # check which key it is, and play corresponding note + # which key check it is, and play corresponding note # if Ctrl + C, quit if (key == "") { @@ -135,3 +135,4 @@ BEGIN { } } } +' diff --git a/bin/io-edit b/bin/io-edit @@ -36,7 +36,7 @@ main() mkdir -p "$CACHE/io" touch "$CACHE/io/files" - [ "$1" = '.' ] && file="$(path "$(io-path)")" || file="$(path "$1")" + [ -d "$1" ] && file="$(path "$(io-path)")" || file="$(path "$1")" # terminal name printf '\033]0;%s\007' "$file" diff --git a/bin/io-path b/bin/io-path @@ -11,7 +11,7 @@ then elif [ "$#" -gt 0 ] then - printf '%s/%s' "$PWD" "$1" + printf '%s/%s\n' "$PWD" "$1" exit 0 fi diff --git a/build/mg b/build/mg @@ -0,0 +1,9 @@ +# simple emacs-like editor + +tar=http://homepage.boetes.org/software/mg/mg-20161005.tar.gz + +build() +{ + cp mg "$PREFIX/bin" + cp mg.1 "$PREFIX/man" +}