Move bash_history into .devcontainer folder

This commit is contained in:
Bruno Alla 2023-06-28 13:57:38 +01:00
parent 6c1be80ad4
commit 45ee32e607
No known key found for this signature in database
4 changed files with 3 additions and 15 deletions

View File

@ -73,16 +73,6 @@ def remove_pycharm_files():
shutil.rmtree(docs_dir_path)
def create_devcontainer_bash_history_file():
history_dir_path = ".history"
if not os.path.exists(history_dir_path):
os.mkdir(history_dir_path)
history_file_path = ".history/bash_history"
with open(history_file_path, "a"):
pass
def remove_docker_files():
shutil.rmtree(".devcontainer")
shutil.rmtree("compose")
@ -443,7 +433,6 @@ def main():
if "{{ cookiecutter.use_docker }}".lower() == "y":
remove_utility_files()
create_devcontainer_bash_history_file()
else:
remove_docker_files()

View File

@ -7,7 +7,7 @@
"init": true,
"mounts": [
{
"source": "./.history/bash_history",
"source": "./.devcontainer/bash_history",
"target": "/home/dev-user/.bash_history",
"type": "bind"
},

View File

@ -161,9 +161,8 @@ typings/
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
# Local History for devcontainer
.devcontainer/bash_history
{% if cookiecutter.editor == 'PyCharm' -%}
# Provided default Pycharm Run/Debug Configurations should be tracked by git