Browse Source

Sort subdirs for more intuitive behavior

Alois Mahdal 11 years ago
parent
commit
c5649ed1f7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      dotfiles/git-universe/bin/sibling

+ 1
- 1
dotfiles/git-universe/bin/sibling View File

53
 then
53
 then
54
     sibling=$(cat $sibling_conf);
54
     sibling=$(cat $sibling_conf);
55
 else
55
 else
56
-    sibling=$(find -maxdepth 1 -type d -name "[^.]*" | head -1)
56
+    sibling=$(find -maxdepth 1 -type d -name "[^.]*" | sort | head -1)
57
 fi
57
 fi
58
 
58
 
59
 if [ -z "$sibling" ];
59
 if [ -z "$sibling" ];