Skip to content
Snippets Groups Projects
Commit c339c582 authored by nimrod's avatar nimrod
Browse files

Colored output

- Added shell function to echo with color.
- Added shell alias to alert (bell).
parent 8cc016fc
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,49 @@ alias jt='json-tool'
alias http-server='python3 -m http.server 8080'
alias dd='dd status=progress'
alias screenshot-cleanup='find "$HOME/Pictures" -name "Screenshot from *.png" -delete'
alias bell='printf \a'
bold () {
printf '\e[1m'
echo "$@"
printf '\e[0m'
}
red () {
printf '\e[1;91m'
echo "$@"
printf '\e[0m'
}
green () {
printf '\e[1;92m'
echo "$@"
printf '\e[0m'
}
yellow () {
printf '\e[1;93m'
echo "$@"
printf '\e[0m'
}
blue () {
printf '\e[1;94m'
echo "$@"
printf '\e[0m'
}
magenta () {
printf '\e[1;95m'
echo "$@"
printf '\e[0m'
}
cyan () {
printf '\e[1;96m'
echo "$@"
printf '\e[0m'
}
deduce_aws_region () {
AWS_DEFAULT_REGION="$(python << EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment