Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What this line means in oh-my-zsh?

Tags:

sh

zsh

ubuntu

In the oh-my-zsh's upgrade tool, I found this line(line 2):

current_path=${current_path/ /\\ }

What it did?

Additionally, this line works on mac, but on my ubuntu server it output a error says:

.oh-my-zsh/tools/upgrade.sh: 2: .oh-my-zsh/tools/upgrade.sh: Bad substitution
like image 457
Yad Smood Avatar asked Dec 18 '25 19:12

Yad Smood


1 Answers

Updated it on Ubuntu with

cd ~/.oh-my-zsh
bash ~/.oh-my-zsh/tools/upgrade.sh
like image 96
DmitrySandalov Avatar answered Dec 21 '25 02:12

DmitrySandalov