Skip to content

Instantly share code, notes, and snippets.

@paesku
Last active November 13, 2016 17:46
Show Gist options
  • Save paesku/c1d64b5d4d640ef190a9 to your computer and use it in GitHub Desktop.
Save paesku/c1d64b5d4d640ef190a9 to your computer and use it in GitHub Desktop.

Fun Functions

create folder and cd into

usage

md <new folder name>
function mkd() {
  mkdir -p $1 && cd $1
}

Add a Sketch Plugin

usage

addSketchPlugin git.mylovedSketchAppPluginRepo.git
function addSketchPlugin() {
  cd /Users/pascalmueller/Library/Application\ Support/com.bohemiancoding.sketch3/Plugins && git clone $1
}

Add a Repo in a specific folder

usage

addRepo GitProjects git.mylovedRepo.git
function addRepo() {
  cd /Users/pascalmueller/$1 && git clone $2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment