shell snippets - oh my zsh

文章目录

    背景

    用习惯了 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 聊聊,或者关注我的个人公众号“大象工具”, 查看更多联系方式