aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc11
1 files changed, 4 insertions, 7 deletions
diff --git a/.zshrc b/.zshrc
index 13d9389..b3e9722 100644
--- a/.zshrc
+++ b/.zshrc
@@ -36,17 +36,14 @@ export KEYTIMEOUT=1
setopt auto_cd # cd without `cd` command
# setopt pushd_ignore_dups
-setopt list_rows_first # iterate in completion menu by row
+setopt list_rows_first # cycle through row first in menu
# setopt extendedglob
# executed when changind directory
function chpwd() {
- file_count=$(ls | wc -w)
- if [ $file_count -lt 30 ]; then
- tree -L 1
- else
- echo "$(pwd) contains $file_count files"
- fi
+ content=`ls | wc -l`
+ ([ $content -lt 30 ] && tree -L 1) ||
+ echo "$(pwd) contains $content entries"
}
# add command-not-found package suggestion