scripts/src/pn

11 lines
118 B
Plaintext
Raw Normal View History

2020-12-01 14:32:39 +01:00
#!/bin/sh
trap 'exit 128' INT
cd "${1:-$(pwd)}" || exit 1
path="$(git rev-parse --show-prefix)"
echo "${path%/}"