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

Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/77
This commit is contained in:
Victor Westerlund 2025-12-14 05:16:14 +01:00
parent b25d305ca2
commit 29b13a52f2

View file

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