Skip to content

Instantly share code, notes, and snippets.

@leelaprasadv
leelaprasadv / .zshrc
Created December 2, 2024 15:22
Alias to git clone and open folder in VS Code
# Add below configuration to clone git repo and open in VS Code
# Provided below conditions are met:
# 1. VS Code is installed and `code` command can be used to invoke VS Code
# 2. All git repos are cloned into a workspace folder called ~/git.
# If the workspace folder needs change `cd ~/git` -> cd ~/<your workspace folder> in below alias command.
# 3. Add this alias to your .bashrc or .zshrc
# 4. source the .bashrc or .zshrc (for first time) or open new terminal
# 5. Change the alias name as you wish
#
# USAGE:: $ gcode https://github.com/<repo path>.git