shell snippets - oh my zsh

发布时间: 2016-05-08 01:19:10 作者: 大象笔记

背景

用习惯了 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

我是一名山东烟台的开发者,联系作者