[SOLVED] zsh - don't remove trailing slash on tab completion completion
by heifi from LinuxQuestions.org on (#6JZJ0)
Hi there,
I recently switched from bash to zsh and there are some behaviors that really drive me insane.
Most of them I could fix with enough googling, but there is one I can't seem to find the answer to:
If I tab complete the command: `cd /path/to/directory/`
It actually removes the last "/" on enter, resulting in: `cd /path/to/directory`
This is especially disturbing for rsync commands, where the two variants mean two totally different things ...
I thought, I found the answer here: https://grml.org/zsh/zsh-lovers.html
"If you end up using a directory as argument, this will remove the trailing slash (useful in ln)"
```
zstyle ':completion:*' squeeze-slashes true
```
So I tried `zstyle ':completion:*' squeeze-slashes false`, but it doesn't seem to change anything.
Thanks for your help.
I recently switched from bash to zsh and there are some behaviors that really drive me insane.
Most of them I could fix with enough googling, but there is one I can't seem to find the answer to:
If I tab complete the command: `cd /path/to/directory/`
It actually removes the last "/" on enter, resulting in: `cd /path/to/directory`
This is especially disturbing for rsync commands, where the two variants mean two totally different things ...
I thought, I found the answer here: https://grml.org/zsh/zsh-lovers.html
"If you end up using a directory as argument, this will remove the trailing slash (useful in ln)"
```
zstyle ':completion:*' squeeze-slashes true
```
So I tried `zstyle ':completion:*' squeeze-slashes false`, but it doesn't seem to change anything.
Thanks for your help.