shell snippets - oh my zsh

更新日期: 2018-08-04 阅读次数: 10936 分类: Shell

背景

用习惯了 VIM 的 snippets 插件,就希望在 shell 里也能够按 TAB 进行命令补全。 例如,Django 项目中,输入 python manage.py 再按 TAB 就能自动看到 django 的所有命令参数,而不是要回车执行之后才能看到。

据说 zsh 有该功能,就尝试一下 Oh My Zsh

Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout...

安装

Ubuntu 上

  sudo apt install zsh
  sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

参考 Installing ZSH

Tmux 中默认使用 zsh

编辑 ~/.tmux.conf 添加

  set -g default-shell /bin/zsh
  set -g default-command /bin/zsh

配置 shell snippets

关于作者 🌱

我是来自山东烟台的一名开发者,有敢兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊, 查看更多联系方式