summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-08-15 01:20:53 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-08-15 01:20:53 +0200
commitb0fc1c80bc8d5f94032d6b8827964cfc9bb7e152 (patch)
tree7b0f590e363f859d85eae41f9745b270a1de0c11 /etc/functions
parent1941fa46a9808f61b16ec445bb4fcccb4e29e527 (diff)
parent4c54a8e4ec50bb084fad91aea7e3c66047eab6b5 (diff)
Merge branch 'master' of ssh://aneurysm/home/derf/var/packages_root/zsh
Diffstat (limited to 'etc/functions')
-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