浏览代码

add cdls to zshrc

Josh Bicking 7 年之前
父节点
当前提交
833c6a8acf
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      zshrc

+ 5 - 0
zshrc

@@ -91,6 +91,11 @@ bindkey "^s" history-incremental-search-forward
 bindkey ";5C" forward-word
 bindkey ";5D" backward-word
 
+# cdls
+function cd {
+    builtin cd "$@" && ls -F
+}
+
 # Editor defaults
 export EDITOR=emacs
 export VISUAL=emacs