mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2026-01-12 05:45:59 +01:00
fix(bash): return after recursive call when cdl/cdll to home
This commit is contained in:
parent
b25d305ca2
commit
04dace945c
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue