Skip to content

Instantly share code, notes, and snippets.

@daniel12fsp
Created January 13, 2019 22:09
Show Gist options
  • Save daniel12fsp/2802abc915cf3d5b59523eb225dfb25b to your computer and use it in GitHub Desktop.
Save daniel12fsp/2802abc915cf3d5b59523eb225dfb25b to your computer and use it in GitHub Desktop.
Download repo and open editor
#!/usr/bin/env bash
cd /tmp/
git clone $1;
#get name of repo
_repoFolder=$(echo $1 | cut -d "/" -f 5)
repoFolder=$(echo $_repoFolder | cut -d "." -f 1)
cd $repoFolder;
code $repoFolder;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment