mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-09-13 19:03:40 +02:00
feat(bash): add cdl and cdll to home if no arg provided
This commit is contained in:
parent
bd7efe5ccf
commit
142159881a
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue