]> Sergey Matveev's repositories - schwabrak.git/commitdiff
Ability to be inside issues/
authorSergey Matveev <stargrave@stargrave.org>
Sun, 16 Jun 2024 07:25:49 +0000 (10:25 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 16 Jun 2024 07:25:49 +0000 (10:25 +0300)
lib.zsh.rc

index f00593f142b68987db23f198857e86763bb12dcad47d2260ff095b4b4b58b5c5..a6357cbe2499f360f47914dc0123e65e498aa23d537028cf1b0235d974246593 100644 (file)
@@ -8,7 +8,10 @@ die() {
     exit 1
 }
 
-[[ -d issues ]] || die You must run that command in directory with issues/
+[[ -d issues ]] || {
+    cd ..
+    [[ -d issues ]] || die You must run that command in directory with issues/
+}
 
 autoload -Uz relative