Swithed from IlanCosman to plttn version of tide
This commit is contained in:
parent
0ed893ecd0
commit
292c618236
39 changed files with 693 additions and 201 deletions
16
.config/fish/functions/_tide_internal_jj_git.fish
Normal file
16
.config/fish/functions/_tide_internal_jj_git.fish
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue