From 9ce758cd778eda13b04e584e591713c0a9571364 Mon Sep 17 00:00:00 2001 From: "shingil.kang" Date: Mon, 25 Aug 2014 16:42:47 +0900 Subject: SDB: Enabled auto-complete when sdb is located in PATH Change-Id: I4778fe090590800af390ab3b45f5fb1dd641b9e5 Signed-off-by: shingil.kang --- package/.sdb-completion.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package') diff --git a/package/.sdb-completion.bash b/package/.sdb-completion.bash index 7623a06..addcbc6 100644 --- a/package/.sdb-completion.bash +++ b/package/.sdb-completion.bash @@ -8,7 +8,8 @@ _sdb() COMPREPLY=() - if [ ! -f ${SDB_PATH} ]; + IS_SDB_IN_PATH=`which sdb` + if [ ! -f ${SDB_PATH} ] && [ -z ${IS_SDB_IN_PATH} ]; then return 0; fi -- cgit v1.2.3