fix(bash): return after recursive call when cdl/cdll to home

This commit is contained in:
Victor Westerlund 2025-12-14 05:14:21 +01:00
parent b25d305ca2
commit 04dace945c
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -115,6 +115,7 @@ cdl () {
# Cdl to home if no args provided
if [ $# -eq 0 ]; then
cdl $HOME
return
fi
cd -P -- "$1" && l
@ -124,6 +125,7 @@ cdll () {
# Cdll to home if no args provided
if [ $# -eq 0 ]; then
cdll $HOME
return
fi
cd -P -- "$1" && ll