「Oh-My-Zsh」から「Starship」に移動し、「url-quote-magic」モジュールを有効にしたいと思います。

「Oh-My-Zsh」から「Starship」に移動し、「url-quote-magic」モジュールを有効にしたいと思います。

私は切り替えて、oh-my-zshこのstarshipツールがはるかに優れていることを知りました。

私を悩ませる唯一のことは、URIを端末に貼り付けるときに自動的に引用されないことです。したがって、URIでは何もできませんmpvyt-dlp

を使用すると、oh-my-zshこれをurl-quote-magic有効にするために何もする必要はありません。

url-quote-magic今一緒にしたいですstarship。どのようにurl-quote-magic統合するのですstarshipか?

brew search url-quote-magic
==> Downloading https://formulae.brew.sh/api/formula.json
######################################################################## 100.0%
Error: No formulae or casks found for "url-quote-magic".

zsh --version
zsh 5.8.1 (x86_64-apple-darwin22.0)

修正する:

Readmeファイルのインストール方法は機能しません。

yt-dlp https://www.youtube.com/watch?v=ii_lXjLFddA
zsh: no matches found: https://www.youtube.com/watch?v=ii_lXjLFddA

mpv https://www.youtube.com/watch?v=36YnV9STBqc
zsh: no matches found: https://www.youtube.com/watch?v=36YnV9STBqc


cat .zshrc
eval "$(starship init zsh)"
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic

ベストアンサー1

~によると文書、zshrcに次の行を追加するだけです。

autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic

(私はこれをLinuxシステムでテストしましたが、私はうまくいきました。私はoh-my-zshやstarshipを使用しません。)

角かっこ貼り付けを有効にした場合は、次のものが必要です。bracketed-paste-magic:

autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic

おすすめ記事