Files
obsidian_utils/importFileToObsidian/import-to-obsidian.sh
T
2026-05-26 14:27:01 +02:00

13 lines
346 B
Bash
Executable File

#!/bin/sh
# Wrapper script for importing files into Obsidian.
# Adjust VAULT_PATH below or leave empty to rely on ~/.bashrc / env / auto-detection.
VAULT_PATH=""
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
if [ -n "$VAULT_PATH" ]; then
python3 "$SCRIPT_DIR/main.py" --vault "$VAULT_PATH" "$@"
else
python3 "$SCRIPT_DIR/main.py" "$@"
fi