Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ Scripts/settings.json
Configuration.tex
.DS_Store
ProperTree.app

# personal build notes for this fork, not part of the tool
ROADMAP.local.md
200 changes: 121 additions & 79 deletions README.md

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
# plist install - symlink into ~/.local/bin (or the dir given)
# usage: ./install.sh [dir] link the plist command into dir
# ./install.sh --uninstall [dir] remove the links
set -euo pipefail
repo="$(cd "$(dirname "$0")" && pwd)"
dir="${2:-$HOME/.local/bin}"

if [ "${1:-}" = "--uninstall" ]; then
rm -f "$dir/plist" "$dir/propertreecli"
echo "removed $dir/plist"
exit 0
fi

mkdir -p "$dir"
ln -sfn "$repo/propertreecli.py" "$dir/plist"
# old name kept as an alias so nothing that learned it breaks
ln -sfn "$repo/propertreecli.py" "$dir/propertreecli"
echo "linked $dir/plist -> $repo/propertreecli.py"

case ":$PATH:" in
*":$dir:"*) ;;
*) echo "add $dir to your PATH to run it from anywhere:"
echo " export PATH=\"$dir:\$PATH\""
;;
esac
Loading