src/pn: new script

This commit is contained in:
Maciej Barć 2020-12-01 14:32:39 +01:00
parent 65edb50d4c
commit ffa106fad9
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A

10
src/pn Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
trap 'exit 128' INT
cd "${1:-$(pwd)}" || exit 1
path="$(git rev-parse --show-prefix)"
echo "${path%/}"