LoginSignup
0
0

More than 5 years have passed since last update.

ROS でpackage 移動するときにpecoを使う

Last updated at Posted at 2017-08-27

変数$ROS_PACKAGE_PATHを使う。

function peco-ros () {
    local selected_dir=$(echo ${ROS_PACKAGE_PATH//:/$'\n'} | peco --query "$LBUFFER")
    if [ -n "$selected_dir" ]; then
        BUFFER="cd ${selected_dir}"
        zle accept-line
    fi
    zle clear-screen
}
zle -N peco-ros
bindkey '^[' peco-ros
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0