1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
Henrik Holmboe
9adf9c32b0
Merge 837fd40a56 into 367e9381df 2024-09-23 17:33:05 +02:00
Carlo Sala
367e9381df
chore(git): fix typo 2024-09-23 17:32:44 +02:00
Henrik Holmboe
837fd40a56 fix(grep): exclude Python virtualenv (.venv) dir from grep
The convention to use `.venv/` directories for Python virtualenv's are widespreasd. This directory is huge and gives very little value when grepping in a source code directory.
2024-09-20 15:08:46 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -163,7 +163,7 @@ function git_current_branch() {
} }
# Outputs the name of the previously checked out branch # Outputs the name of the previously checked out branch
# Usage example: git pull origin $(git_current_branch) # Usage example: git pull origin $(git_previous_branch)
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch # rev-parse --symbolic-full-name @{-1} only prints if it is a branch
function git_previous_branch() { function git_previous_branch() {
local ref local ref

View file

@ -10,7 +10,7 @@ else
} }
# Ignore these folders (if the necessary grep flags are available) # Ignore these folders (if the necessary grep flags are available)
EXC_FOLDERS="{.bzr,CVS,.git,.hg,.svn,.idea,.tox}" EXC_FOLDERS="{.bzr,CVS,.git,.hg,.svn,.idea,.tox,.venv}"
# Check for --exclude-dir, otherwise check for --exclude. If --exclude # Check for --exclude-dir, otherwise check for --exclude. If --exclude
# isn't available, --color won't be either (they were released at the same # isn't available, --color won't be either (they were released at the same