🚧 Added mycd script and cdls alias
This commit is contained in:
parent
e964d4895c
commit
d448a5f263
3 changed files with 56 additions and 19 deletions
14
scripts/mycd
Executable file
14
scripts/mycd
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# TODO: add dependency check for eza, otherwise use ls
|
||||
|
||||
# ls after cd
|
||||
function mycd {
|
||||
if [ -z "$1" ]; then
|
||||
builtin cd && eza --icons
|
||||
else
|
||||
builtin cd "$1" && eza --icons
|
||||
fi
|
||||
}
|
||||
|
||||
mycd "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue