src/pn: new script

This commit is contained in:
Maciej Barć committed 2020-12-01 14:32:39 +01:00
1 parent 65edb50d4c
commit ffa106fad9
1 file changed
+10
Executable
+10
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%/}"