dot

packages and services management
Log | Files | Refs | README

commit 1d6f8239bf5fc17cf95a3f5f5e39c6944b7753bb
parent f7ab5e2d703afeef0241d528d5152830231ccf07
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 30 Nov 2017 18:23:03 +0100

split iioo into io-* again

I will figure out later how to do this...

Diffstat:
Mbin/README | 0
Dbin/iioo | 21---------------------
Abin/io-netstat | 3+++
Abin/io-ps | 4++++
Abin/io-src | 6++++++
Mbin/xdg-open | 2+-
Mpackage/iomenu/git | 2+-
7 files changed, 15 insertions(+), 23 deletions(-)

diff --git a/bin/README b/bin/README diff --git a/bin/iioo b/bin/iioo @@ -1,21 +0,0 @@ -#!/bin/sh - -case $1 in -(n|netstat) - netstat -a | sed 's/^[AP]/#&/' | iomenu -# - ;; -(p|ps) - { ps -ax || ps; } | sed '1 s/^/#/' | iomenu -p ps -# | - sed -r 's/[^ ]* *([0-9]*).*/\1/' - ;; -(s|src) - xdg-open "$(find "$2" -type f ! -path '*/.git/*' | sort | - xargs -n 1 awk ' - FNR == 1 { printf("#%s\n", FILENAME); } - { printf("%7s\t%s\n", FNR, $0); } - ' | iomenu -# -p search | sed 's/ .*//')" - ;; -(*) - printf 'usage: io [n[etstat] | p[s] | s[rc] path]\n' - ;; -esac diff --git a/bin/io-netstat b/bin/io-netstat @@ -0,0 +1,3 @@ +#!/bin/sh + +netstat -a | sed 's/^[AP]/#&/' | iomenu -# diff --git a/bin/io-ps b/bin/io-ps @@ -0,0 +1,4 @@ +#!/bin/sh + +{ ps -ax || ps; } | sed '1 s/^/#/' | iomenu -p ps -# | +sed -r 's/[^ ]* *([0-9]*).*/\1/' diff --git a/bin/io-src b/bin/io-src @@ -0,0 +1,6 @@ +#!/bin/sh + +less "$(find "$1" -type f ! -path '*/.git/*' | sort | xargs -n 1 awk ' + BEGIN { printf("#%s\n", ARGV[1]); } { printf("%7s\t%s\n", FNR, $0); } + ' | iomenu -# -p search | cut -f 1 +)" diff --git a/bin/xdg-open b/bin/xdg-open @@ -87,7 +87,7 @@ case $1 in aexec play "$1" ;; (*) - [ -d "$1" ] && aexec io-src "$1" + [ -d "$1" ] && exec io-src "$1" aexec less "$1" ;; esac diff --git a/package/iomenu/git b/package/iomenu/git @@ -1 +1 @@ -http://github.com/josuah/iomenu +git://josuah.net:9000/iomenu.git