mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit be07aac161d897b4c7e7449df952bb359087f602
parent bef76b665890b06de98bc25b04af91e0f88c1981
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 26 Oct 2013 23:21:10 +0200

+cnf, +wim

Diffstat:
cnf | 7+++++++
wim | 11+++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/cnf b/cnf @@ -0,0 +1,7 @@ +#!/bin/bash + +# lookup package providing a command + +command-not-found "$*" 2>&1 | cut -d"'" -f 2,4,6 | grep "'" | + tr "'" ' ' | awk 'NF == 3 {print $1,$3} NF == 2 {print $1,$2}' + diff --git a/wim b/wim @@ -0,0 +1,11 @@ +#!/bin/bash + +# vi `which cmd` + +P=$(which $*) +if [ -f "$P" ] +then + $EDITOR $P +else + echo $P +fi