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 From 4c54a8e4ec50bb084fad91aea7e3c66047eab6b5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 12 Aug 2009 12:58:24 +0200 Subject: Don't use ls -F on linux (the colors suffice) --- etc/aliases/default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/aliases/default b/etc/aliases/default index 4a1755d..a7a983c 100644 --- a/etc/aliases/default +++ b/etc/aliases/default @@ -21,7 +21,7 @@ linux: alias du='du -shD' || alias du='du -shH' # human-readable sizes, mark executables with '*' etc. -linux: alias ls='ls -Fh --color=auto' || +linux: alias ls='ls -h --color=auto' || alias ls='ls -Fh' ## enable alias expansion -- cgit v1.2.3