Linux.com

CLI Magic: A little script to customize directory listings- added support for wide terminal windows

Posted by: Anonymous [ip: 204.176.13.6] on December 11, 2007 03:13 PM
I often use very wide terminal windows. I found that your script did not use the full width of my window so I modified your last line as follows:

ls -C --width=$(tput cols) $DIR | sed s/"$SEARCH"/"$RED$SEARCH$NORMAL"/

#

Return to CLI Magic: A little script to customize directory listings