fishのfunctionをpecoで選択
functions
の出力が,区切りで見にくいじゃん?
,を\nに置換して改行表示にするじゃん?
でも調べてから使うにはコピペするか先頭文字打って補完するじゃん?
じゃあpecoでざっつに検索してそのままコマンドラインに出したいじゃん?
とfunctionsを知って数分、勢いで書く。
function penctions
commandline (functions | tr ',' '\n' | peco)
end
function fish_user_key_bindings
bind \cq penctions
end
commandlineは2.6.0からの書き方。
fishshell 2.6.0 の変更点ピックアップ - Qiita
引数とか考慮しない手抜きなので、_始まりのfunctionだしたいなら -a をデフォルトでつけるか引数対応に
functionを自作したはいいが、ちょっと使わないとかなり忘れるので、ましになるかも。
Author And Source
この問題について(fishのfunctionをpecoで選択), 我々は、より多くの情報をここで見つけました https://qiita.com/khsk/items/b6d70f0cd7a5014223a9著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .