Eagle233-Blog
Light Dark Pure Black Follow device
Indigo (Default) Blue Teal Green Violet Pink Amber Red Slate
English 简体中文
Table of contents

[Troubleshooting] 实用 Zsh 自定义函数

Link copied

cd 后自动 ls

cd() {
  builtin cd "$@" && ls
}

brew up 更新、清理 Homebrew

brew() {
  if [ "$1" = "up" ]; then
	command brew update &&
    command brew upgrade --greedy &&
    command brew cleanup --prune=all
  else
    command brew "$@"
  fi
}

Except where otherwise noted, original content on this site is dedicated to the public domain under CC0 1.0.
Powered by Hexo & Theme mdsuper

沪ICP备2026040813号
Search