feat(bash): add cdl and cdll to home if no arg provided

This commit is contained in:
Victor Westerlund 2025-07-10 12:31:06 +02:00
parent bd7efe5ccf
commit 142159881a
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -42,11 +42,21 @@ lll () {
}
cdl () {
# Cdl to home if no args provided
if [ $# -eq 0 ]; then
cdl $HOME
fi
cd -P -- "$1" && l
}
cdll () {
cp -P -- "$1" && ll
# Cdll to home if no args provided
if [ $# -eq 0 ]; then
cdll $HOME
fi
cd -P -- "$1" && ll
}
# Make a new directory and cd into it