Skip to content

Instantly share code, notes, and snippets.

@mdyzma
Created October 22, 2015 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdyzma/d7699720328fd56374bf to your computer and use it in GitHub Desktop.
Save mdyzma/d7699720328fd56374bf to your computer and use it in GitHub Desktop.
#!/bin/bash
#check if variable was passed from terminal with file execution
if [ -z "$1" ]; then
echo -e "\e[31mPodaj nazwe projektu\e[0m"
else
# execute oneliner
mkdir -p $1/{jupyter/{plots,data/{mat,csv,cdf,other}},img,docs,utilities}&&touch $1/.gitignore&&echo ".ipynb_checkpoints/">$1/.gitignore&&echo "Projekt stworzony"&&$1/git init && $1/git add -A && $1/git commit -m "Initial commit"&&tree -a $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment