Skip to content

Instantly share code, notes, and snippets.

@hassaku63
Last active January 25, 2021 11:00
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 hassaku63/956daea19d7542dbd82246ffdeaac2d1 to your computer and use it in GitHub Desktop.
Save hassaku63/956daea19d7542dbd82246ffdeaac2d1 to your computer and use it in GitHub Desktop.
a shell function that is shortcut of making python-package directory
#
# 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