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 (#30)
Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/30
This commit is contained in:
parent
bd7efe5ccf
commit
3d77f64e32
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue