aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-23 11:49:58 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-23 11:49:58 +0200
commit718e7ea6e19717c67060648b366dcbbc837535e3 (patch)
tree22201337528eeb2180834644db06241bd0f1921d /.zshrc
parente9530ee0b4e9706fb0fcb82fa3cb87d57a5b540d (diff)
downloaddotfiles-718e7ea6e19717c67060648b366dcbbc837535e3.tar.gz
dotfiles-718e7ea6e19717c67060648b366dcbbc837535e3.tar.bz2
dotfiles-718e7ea6e19717c67060648b366dcbbc837535e3.zip
vim change mapping, sublime text config, some alias
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc13
1 files changed, 5 insertions, 8 deletions
diff --git a/.zshrc b/.zshrc
index 42dde40..b3e9722 100644
--- a/.zshrc
+++ b/.zshrc
@@ -34,19 +34,16 @@ bindkey -v '^?' backward-delete-char
bindkey -v
export KEYTIMEOUT=1
-setopt auto_cd # cd without `cd` command
+setopt auto_cd # cd without `cd` command
# setopt pushd_ignore_dups
-# setopt list_rows_first
+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