mbenford / zsh-tmux-auto-title

ZSH plugin for tmux that automatically sets the title of windows/panes as the current foreground command.
MIT License
20 stars 5 forks source link

Fix "bad math expression" and "destination already exists" errors with the README.md "git clone" instructions. #2

Closed JonathanWheeler closed 1 year ago

JonathanWheeler commented 1 year ago

1st fix:

❯ git clone --depth=1 https://github.com/mbenford/zsh-tmux-auto-title ${ZSH_CUSTOM:~/.oh-my-zsh/custom}/plugins
zsh: bad math expression: operand expected at `/.oh-my-zs...'

2nd fix:

❯ git clone --depth=1 https://github.com/mbenford/zsh-tmux-auto-title "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins"
fatal: destination path '[...]/oh-my-zsh/custom/plugins' already exists and is not an empty directory.
mbenford commented 1 year ago

Nice catch! Thanks for your contribution! 😃