mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Closed #12600
This commit is contained in:
parent
0ffcc3b68a
commit
e685b517e2
1 changed files with 8 additions and 0 deletions
|
|
@ -422,3 +422,11 @@ for old_alias new_alias (
|
|||
$new_alias"
|
||||
done
|
||||
unset old_alias new_alias
|
||||
|
||||
function autofetch() {
|
||||
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null ) ]] ; then
|
||||
git fetch
|
||||
fi
|
||||
}
|
||||
|
||||
add-zsh-hook chpwd fetch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue