https://github.com/prefix-dev/shell/pull/85 implemented the `~` support. But it does not work with tab completion yet.