aboutsummaryrefslogtreecommitdiff
path: root/vis-open
diff options
context:
space:
mode:
Diffstat (limited to 'vis-open')
-rwxr-xr-xvis-open1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-open b/vis-open
index 0bcdd5c..a47249f 100755
--- a/vis-open
+++ b/vis-open
@@ -32,6 +32,7 @@ if ! type "$VIS_MENU" >/dev/null 2>&1; then
fi
DIR=""
+[ ! -z "$PATTERN" -a "$PATTERN" != "." -a -d "$PATTERN" ] && DIR="$PATTERN"
while true; do
SEL=$({ echo ..; ls -1 $PATTERN; } | $VIS_MENU $VIS_MENU_ARGS)