Created
October 22, 2015 09:06
-
-
Save mdyzma/d7699720328fd56374bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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