winnielinnie
MVP
- Joined
- Oct 22, 2019
- Messages
- 3,641
If for a non-root user I select zsh for their shell, I can autocomplete zfs commands, snapshot names, dataset names, etc.
For example, typing in the following...
...will autocomplete or suggest something like...
But this only works for a non-root user. If I try to do it as root, nothing autocompletes after "zfs", even if I set root's shell to zsh.
Is this an intentional default for TrueNAS? Is there a way to make it work like it does with a non-root user?
For example, typing in the following...
truenas% zfs list -r -t snap mainpool@ba
| [tab]...will autocomplete or suggest something like...
truenas% zfs list -r -t snap mainpool@backups_2021-04-05_18-00
|But this only works for a non-root user. If I try to do it as root, nothing autocompletes after "zfs", even if I set root's shell to zsh.
Is this an intentional default for TrueNAS? Is there a way to make it work like it does with a non-root user?