# Command line aliases.

alias cargo-expand="cargo expand --theme 'Solarized (light)'"
alias cargo-testpath="cargo test --no-run --message-format=json | jq -r 'select(.profile.test == true) | .filenames[]'"
alias procs='procs --theme light'

# Add unified clipboard aliases.
#
# Flags:
#   -s: Print machine kernel name.
#   -x: Check if file exists and execute permission is granted.
if [[ "$(uname -s)" == 'Darwin' ]]; then
  alias cbcopy='pbcopy'
  alias cbpaste='pbpaste'
elif [[ -x "$(command -v wl-copy)" ]]; then
  alias cbcopy='wl-copy'
  alias cbpaste='wl-paste'
fi
