From e617405ce3db54ea8d8a645edbbeafc7f44bba8b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 12 Aug 2009 12:57:50 +0200 Subject: mkcd: No need for a trailing 'true' --- etc/functions/mkcd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/functions/mkcd b/etc/functions/mkcd index c4a8c5d..bd6158d 100644 --- a/etc/functions/mkcd +++ b/etc/functions/mkcd @@ -7,8 +7,7 @@ if [[ -z $dir ]] { echo "Usage: mkcd " > /dev/stderr return 1 } -[[ -d $dir ]] && ls=1 +if [[ -d $dir ]] ls=1 mkdir -p $dir cd $dir -((ls)) && ls -true +if ((ls)) ls --color=auto -- cgit v1.2.3