Skip to content

Instantly share code, notes, and snippets.

@dmazzer
Created July 12, 2018 22:05
Show Gist options
  • Save dmazzer/9d3b9803ba314636c545c32a23aaa6f3 to your computer and use it in GitHub Desktop.
Save dmazzer/9d3b9803ba314636c545c32a23aaa6f3 to your computer and use it in GitHub Desktop.
unionfs script work with PyCharm and Clion on same project structure
#!/bin/bash
#
# Daniel Mazzer (2018)
#
# Source: Source files
# Idea_x: PyCharm and Clion .idea folders
# Mount_x: Mounting points to point IDEs workspace
SOURCE=src
IDEA_P=project_p
IDEA_C=project_c
MOUNT_P=src_p
MOUNT_C=src_c
echo "Mounting folders..."
unionfs $IDEA_C=RW:$SOURCE=RW $MOUNT_C
unionfs $IDEA_P=RW:$SOURCE=RW $MOUNT_P
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment