peco + apt
68日目
php7.2-mbstring をインストールするまで
$ apt search mbstring ソート中... 完了 全文検索... 完了 php-mbstring/bionic,bionic 1:7.2+60ubuntu1 all MBSTRING module for PHP [default] php-patchwork-utf8/bionic,bionic 1.3.1-1 all UTF-8 strings handling for PHP php-symfony-polyfill-mbstring/bionic,bionic 1.6.0-2 all Symfony polyfill for the Mbstring extension php-symfony-polyfill-util/bionic,bionic 1.6.0-2 all Symfony utilities for portability of PHP codes php7.2-mbstring/bionic-updates,bionic-security,now 7.2.15-0ubuntu0.18.04.1 amd64 MBSTRING module for PHP # copy 'php7.2-mbstring' $ sudo apt install php7.2-mbstring
いや面倒だからpeco入れよう。
公式のサンプルにあった。
https://github.com/peco/peco/wiki/Sample-Usage#peco--apt
$ vim ~/.bashrc # 追記 function iapt() { if [ -z "$1" ]; then echo "Usage: iapt <initial search string> - select packages on peco and they will be installed" else sudo apt-cache search $1 | peco | awk '{ print $1 }' | tr "\n" " " | xargs -- sudo apt-get -y install fi } $ source ~/.bashrc