Files
nemo-repo-git-menu/uninstall.sh
T
dualfroz 1d80aa8879 refactor: rebuild as a git menu plugin on nemo-repo-core
Keeps the git half of the context menu from the single file extension. Open Terminal Here and Open in Editor are not git actions and work on any folder, so they moved to nemo-folder-tools.

The actions are a table rather than three near identical blocks, which is what makes adding git fetch a one line change. Entries now also appear inside a repository rather than only on its root, using the upward walk from nemo-repo-core.
2026-08-05 20:07:13 +02:00

21 lines
495 B
Bash
Executable File

#!/usr/bin/env bash
# Removes this plugin from Nemo. The core, the other plugins and the config
# file are left alone.
set -euo pipefail
dataHome="${XDG_DATA_HOME:-$HOME/.local/share}"
extensionsDir="$dataHome/nemo-python/extensions"
target="$extensionsDir/nemoRepoGitMenu.py"
if [ -e "$target" ]; then
rm -f "$target"
echo "Removed $target"
else
echo "Not installed: $target"
fi
rm -f "$extensionsDir/__pycache__/nemoRepoGitMenu".*.pyc
echo
echo "Restart Nemo to unload it: nemo -q"