AutoYADM commit: 2025-04-18 14:45:05
This commit is contained in:
parent
653765c70b
commit
fdf077274a
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ function cd --wraps=cd --description "Change directory. No args goes to git root
|
|||
if not test (pwd) = $root
|
||||
__cd_orig $root
|
||||
else
|
||||
__cd_orig -
|
||||
echo "prev: $dirprev[-1]
|
||||
root: $root"
|
||||
if string match -q "$root" "$dirprev[-1]"
|
||||
__cd_orig -
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue