Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Write a command to add all git repo in database #991

Closed
vi000246 opened this issue Feb 14, 2025 · 1 comment
Closed

[Feature request] Write a command to add all git repo in database #991

vi000246 opened this issue Feb 14, 2025 · 1 comment

Comments

@vi000246
Copy link

this is powershell script

$rootPath = "C:\"  # You can change this to D:\ or another drive

# Recursively search all accessible directories under C:\ and ignore errors
$gitFolders = Get-ChildItem -Path $rootPath -Directory -Recurse -ErrorAction SilentlyContinue |
    Where-Object { Test-Path "$($_.FullName)\.git" }

# Add these directories to zoxide
foreach ($folder in $gitFolders) {
    zoxide add $folder.FullName
    Write-Host "Added: $($folder.FullName)"
}

Write-Host "✅ All Git project directories have been added to zoxide!"

this script can write all git repo in database,
can add this as build in feature?

@ajeetdsouza
Copy link
Owner

I'd say this is out of scope for zoxide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants