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

Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/30
This commit is contained in:
Victor Westerlund 2025-07-10 12:33:46 +02:00
parent bd7efe5ccf
commit 3d77f64e32

View file

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