浏览代码

python: add line-number to pygrep (#8867)

Mohammad 4 年之前
父节点
当前提交
dd1df90252
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/python/python.plugin.zsh

+ 1 - 1
plugins/python/python.plugin.zsh

@@ -41,7 +41,7 @@ function pyuserpaths() {
 }
 
 # Grep among .py files
-alias pygrep='grep -r --include="*.py"'
+alias pygrep='grep -nr --include="*.py"'
 
 # Run proper IPython regarding current virtualenv (if any)
 alias ipython="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'"