anki-connect/link.sh

14 lines
354 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
plugin_name=AnkiConnectDev
plugin_path_linux=~/.local/share/Anki2/addons21
plugin_path_mac=~/Library/Application\ Support/Anki2/addons21
if [ -d "$plugin_path_linux" ]; then
ln -s -f $(pwd)/plugin $plugin_path_linux/$plugin_name
fi
if [ -d "$plugin_path_mac" ]; then
ln -s -f $(pwd)/plugin $plugin_path_mac/$plugin_name
fi