$BASH_ALIASES  –  Registered Aliases

$BASH_ALIASES contains a name-value mapping of the registered aliases.

Examples

Print names and values of all registered aliases
1
2
3
for name in ${!BASH_ALIASES[@]}; do 
  echo "$name == ${BASH_ALIASES[$name]}"
done
BashSupport Pro is a Bash IDE with support for $BASH_ALIASEStry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal