blob: d1dd8b85b271806478e8bdca8af296427d5d1616 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
while true
do
file=$(find . -maxdepth 1 -mindepth 1 -not -name '.*' -printf '%y\t%f\n' |
sort -k 1 -k 2 | cut -f 2- |
commander -xcd -p "$PWD>")
[ "$file" ] || break
[ ! -e "$file" ] && continue
if [ -d "$file" ]
then
cd "$file" || continue
else
setsid xdg-open "$PWD/$file" &
fi
done
|