Last active
January 25, 2021 11:00
-
-
Save hassaku63/956daea19d7542dbd82246ffdeaac2d1 to your computer and use it in GitHub Desktop.
a shell function that is shortcut of making python-package directory
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
# | |
# CC0 license | |
# | |
function make-pypkg-dir () { | |
curdir=$(pwd); | |
created_dir=$(dirname $1)/$(basename $1); | |
mkdir $1 \ | |
&& touch ${created_dir}/__init__.py \ | |
&& echo "${created_dir}/__init__.py is created." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment