summaryrefslogtreecommitdiff
path: root/etc/functions/mkcd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/mkcd')
-rw-r--r--etc/functions/mkcd5
1 files 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 <directory name>" > /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