summaryrefslogtreecommitdiff
path: root/dbdb
diff options
context:
space:
mode:
Diffstat (limited to 'dbdb')
-rwxr-xr-xdbdb14
1 files changed, 7 insertions, 7 deletions
diff --git a/dbdb b/dbdb
index 2fb1581..de9eb43 100755
--- a/dbdb
+++ b/dbdb
@@ -8,11 +8,11 @@
chosen="placeholder"
while [ ! -z "$chosen" ]; do
- DIRs=$( ls -a1p | grep -P '^\w[^\$/]+/$' | awk -vRS="\n" -vORS="\t" '1')
- DOTDs=$( ls -a1p | grep -P '^\.[^\$/]+/$' | awk -vRS="\n" -vORS="\t" '1')
- FILEs=$( ls -a1p | grep -P '^\w[^\$/]+$' | awk -vRS="\n" -vORS=" \t" '1')
- DOTFs=$( ls -a1p | grep -P '^\.[^\$/]+$' | awk -vRS="\n" -vORS=" \t" '1')
- clear && printf "\e[1;7;33m $(pwd) \e[0m\n$FILEs\n\e[0;38;5;238m$DOTFs\e[0m\n"
- chosen=`( ( echo -e "$DIRs$DOTDs" | awk -vRS="\t" -vORS="\n" '1' ) | dmenu -i )`
- cd "$chosen"
+ DIRs=$(ls -a1p | grep -P '^\w[^\$/]+/$' | awk -vRS="\n" -vORS="\t" '1')
+ DOTDs=$(ls -a1p | grep -P '^\.[^\$/]+/$' | awk -vRS="\n" -vORS="\t" '1')
+ FILEs=$(ls -a1p | grep -P '^\w[^\$/]+$' | awk -vRS="\n" -vORS=" \t" '1')
+ DOTFs=$(ls -a1p | grep -P '^\.[^\$/]+$' | awk -vRS="\n" -vORS=" \t" '1')
+ clear && printf "\e[1;7;33m $(pwd) \e[0m\n$FILEs\n\e[0;38;5;238m$DOTFs\e[0m\n"
+ chosen=$( (echo -e "$DIRs$DOTDs" | awk -vRS="\t" -vORS="\n" '1') | dmenu -i)
+ cd "$chosen"
done