feat(profile): Add cdl function

This commit is contained in:
Price Hiller 2022-03-17 18:33:57 -05:00
parent fdd104a546
commit 9a30112d2f

View File

@ -385,6 +385,14 @@ tmp() {
)
}
cdl() {
if [[ -f "${1}" ]]; then
cd "$(dirname "$(readlink -f "${1}")")"
else
echo_rgb "No such file: ${1}" 255 0 0 30 0 0
fi
}
### FZF FUNCTIONS ###
killer() {
(