diff options
-rw-r--r-- | etc/aliases/default | 2 | ||||
-rw-r--r-- | etc/functions/mkcd | 5 |
2 files changed, 3 insertions, 4 deletions
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 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 |