UI

Use material files and copy path and paste in terminal

Got it! You want live, inline auto-suggestions for directories when typing cd, similar to how shells like Zsh with plugins or Fish behave. This kind of feature is not built into Bash by default, but you can achieve it in Termux using the Zsh shell + fzf-tab plugin + zsh-autosuggestions.


Solution: Use Zsh + fzf + autosuggestions

  1. Install Zsh and fzf

pkg install zsh fzf git

  1. Install oh-my-zsh (recommended)

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

This will install Zsh and set it as your shell.


  1. Install Plugins

zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

fzf-tab (for live cd suggestions)

git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab


  1. Edit .zshrc to enable plugins

Edit ~/.zshrc and set:

plugins=(git fzf-tab zsh-autosuggestions)

Also, add this at the end for better tab completion:

zstyle ':completion:*' fzf-search-display true


  1. Reload zsh

source ~/.zshrc


  1. Now Try

Type:

cd tu

You will get live suggestions (like tutorials/) in gray (from history or path), and pressing or will trigger fzf-style dropdown with matching directories.


Optional: Set Zsh as default shell

chsh -s zsh


Let me know if you prefer to do this without oh-my-zsh, or want the same behavior in Bash (more complex).