mybin

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

cnf (179B)


      1 #!/bin/bash
      2 
      3 # lookup package providing a command
      4 
      5 command-not-found "$*" 2>&1 | cut -d"'" -f 2,4,6 | grep "'" |
      6   tr "'" ' ' | awk 'NF == 3 {print $1,$3} NF == 2 {print $1,$2}'
      7