From 56fecff55086df2f66b57e07a7db5fc857d2e2b2 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 16 Jan 2026 10:54:41 -0500 Subject: [PATCH] Enable tab completion for custom directory input Use read -e to enable readline support, providing tab completion and line editing when entering custom deployment paths. Also expand tilde to home directory. Co-Authored-By: Claude Sonnet 4.5 --- deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 963e009..e976be7 100755 --- a/deploy.sh +++ b/deploy.sh @@ -22,11 +22,13 @@ case $choice in ;; 3) DEPLOY_MODE="custom" - read -p "Enter deployment directory (required): " DEPLOY_DIR + read -e -p "Enter deployment directory (required): " DEPLOY_DIR if [ -z "$DEPLOY_DIR" ]; then echo "Error: Directory path is required" exit 1 fi + # Expand tilde to home directory + DEPLOY_DIR="${DEPLOY_DIR/#\~/$HOME}" ;; *) echo "Error: Invalid choice"