mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
bring back git ls-files|grep $1 as a function, and add completion
This commit is contained in:
parent
10e88bd791
commit
b167029a28
1 changed files with 3 additions and 0 deletions
|
|
@ -248,6 +248,9 @@ alias gignore='git update-index --assume-unchanged'
|
|||
alias gunignore='git update-index --no-assume-unchanged'
|
||||
# List temporarily ignored files
|
||||
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
|
||||
# Grep list of files in the index
|
||||
function gfg() { git ls-files | grep $@ }
|
||||
compdef gfg=grep
|
||||
# Submodules
|
||||
alias gf='git fetch'
|
||||
compdef _git gf=git-fetch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue