update_terminal_cwd が出た。でもすぐ解決

Macのpyenvを切り替えようしようとしたら、Path設定でミスってめんどくさいことに。
コマンドを実行するとこれが表示されてしまいます。

症状

Docker上なら全然ダメージないですが、ホストPCでこういうことになると心臓に悪いですね。

+update_terminal_cwd:5> local url_path=''                                       
+update_terminal_cwd:10> local i ch hexch LC_CTYPE=C LC_COLLATE=C LC_ALL='' LANG=''
+update_terminal_cwd:11> i = 1
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=/ 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=/ 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=U 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=U 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=s 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=s 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=e 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=e 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=r 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=r 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=s 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=s 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=/ 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=/ 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=p 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=p 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=c 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=c 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=0 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=0 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=2 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=2 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=4 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=4 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:12> ch=3 
+update_terminal_cwd:13> [[ "$ch" -regex-match [/._~A-Za-z0-9-] ]]
+update_terminal_cwd:14> url_path+=3 
+update_terminal_cwd:11> ++i
+update_terminal_cwd:11> i <= 13
+update_terminal_cwd:22> printf '\e]7;%s\a' file://hogenoMacBook-Pro.local/Users/hoge

解決方法

exec /bin/zsh

終わり🏆

タグ
公開日