1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Git for Windows(Git Bash)にコピペした際「01~」が末尾に付いてくる場合の対処法

Last updated at Posted at 2022-11-16

困った

vscodeでGit Bashをデフォルトターミナルにして使っていると、
文字をターミナルにコピペした際末尾に 「01~」 が付いてきてしまう問題が発生。

対処法

調査してみるとどうやら~/.bashrcに以下を追記すれば良いらしい

# setting for git bash bug on vscode
bind 'set enable-bracketed-paste off'

無事解決しました!

他の症状

今回の「01~」が付いてきてしまう問題の他に、
文字数によって 「~」 だったり 「[201~」 が付いてきてしまうケースもあるらしい。

以上。この記事がどなたかのお役に立てれば幸いです。

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?