diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-12 12:57:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-12 12:57:50 +0200 |
commit | e617405ce3db54ea8d8a645edbbeafc7f44bba8b (patch) | |
tree | 944268b3e6ee9657471a4695c6791650a9ce8820 /etc | |
parent | c6c88434bdacf39e9b3dfa3678d66704d58bc296 (diff) |
mkcd: No need for a trailing 'true'
Diffstat (limited to 'etc')
-rw-r--r-- | etc/functions/mkcd | 5 |
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 |