# HG changeset patch # User viric@llimona # Date 1179087606 -7200 # Node ID 11c4ec7423deef8c192b0c5f8113767bdfc6397b # Parent 9d965b78f426bda777a311e1e12084f8f96790f9 'sort' sorts not-numerically, and fixed text width to 80 cols. diff -r 9d965b78f426 -r 11c4ec7423de dm --- a/dm Sat May 12 16:09:44 2007 +0200 +++ b/dm Sun May 13 22:20:06 2007 +0200 @@ -20,8 +20,8 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Instructions: -# 'dm' will manage a list of id-directory. 'dmcd' will allow the current shell to -# change to the directory given by 'id'. +# 'dm' will manage a list of id-directory. 'dmcd' will allow the current shell +# to change to the directory given by 'id'. # # Examples: # $ dm 1 /tmp # Adds the id '1' for /tmp @@ -39,11 +39,10 @@ # # Your directory database is stored in ~/.dm . - function showdirs { if [ -f ~/.dm ] ; then - cat ~/.dm | sort -n + cat ~/.dm | sort fi }