Browse Source

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

Mohammad 4 years ago
parent
commit
dd1df90252
1 changed files with 1 additions and 1 deletions
  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()'"