Swithed from IlanCosman to plttn version of tide

This commit is contained in:
Ivan Golikov 2026-05-27 21:47:46 +02:00
parent 0ed893ecd0
commit 292c618236
39 changed files with 693 additions and 201 deletions

View file

@ -0,0 +1,16 @@
function _tide_internal_jj_git
# Returns:
# 0: inside a jj repo and jj prompt is enabled
# 1: not inside a jj repo
# 2: inside a jj repo but jj prompt is disabled via .disable-jj-prompt
set -l d $PWD
while test -n "$d"
if test -d "$d/.jj"
test -f "$d/.disable-jj-prompt"; and return 2
return 0
end
set d (string replace -r '/[^/]*$' '' -- $d)
end
return 1
end