blob: ef6911abb9cc5c12b3a45c9080dc5ead612a343f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
#give a list of files.
#wait for a selection on stdin
#cd or start that file
#repeat.
while true;do
echo
echo .* * | tr ' ' '\n'
read -r selection
if [ -f "$selection" ];then
xdg-open "$selection" #good enough?
fi
if [ -d "$selection" ];then
cd "$selection"
fi
done
|