当前命令中的ZSH reverse loookup

当前命令中的ZSH reverse loookup,zsh,reverse-lookup,oh-my-fish,Zsh,Reverse Lookup,Oh My Fish,使用Ctrl+R反向查找,我找到了一个需要的长命令: scp .oh-my-zsh/custom/themes/robbyrussell_modifiedprompt.zsh-theme pi@192.168.43.220:.oh-my-zsh/custom/themes/robbyrussell_modifiedprompt.zsh-theme 但是我需要改变中间的IP地址。有没有办法将光标移到ip地址的开头?通过在文件末尾添加以下内容来更改.zshrc: autoload -U edit-

使用Ctrl+R反向查找,我找到了一个需要的长命令:

scp .oh-my-zsh/custom/themes/robbyrussell_modifiedprompt.zsh-theme pi@192.168.43.220:.oh-my-zsh/custom/themes/robbyrussell_modifiedprompt.zsh-theme

但是我需要改变中间的IP地址。有没有办法将光标移到ip地址的开头?

通过在文件末尾添加以下内容来更改.zshrc:

autoload -U edit-command-line
zle -N edit-command-line
bindkey '^E^E' edit-command-line                   # Opens Vim to edit current command line
现在,点击CTRL+E,E打开我的vim编辑器,在这里我可以使用带“/”键的模式搜索,更改ip并返回命令行:qw