Documents scripts that a developer might have need to run frequently.
Includes all functions from ~/.bash_functions
, along with any related aliases.
-
cl() — Combines the
cd
andls
commands into one; adds a trailing slash to directories making them easier to identify in no-color terminals.
# !/usr/bin/env bash
function cl() {
DIR="$*"
# if no DIR given, go home
if [ $# -lt 1 ]; then
DIR=$HOME
fi
builtin cd "${DIR}" &&
# use your preferred ls command
ls -F --color=auto
}