Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| # Backup files | |
| #https://explainshell.com/explain?cmd=rsync+-azuv+--delete+--progress+--exclude+%27node_modules%27 | |
| rsync -auvhp --delete --exclude=node_modules [source] [destination] | |
| # Remove all node_modules folders | |
| # https://explainshell.com/explain?cmd=find+.+-name+%22node_modules%22+-type+d+-prune+-exec+rm+-rf+%27%7B%7D%27+%2B | |
| find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
| #!/bin/bash | |
| set -eEuo pipefail | |
| # https://stackoverflow.com/questions/6928946/mysterious-lineno-in-bash-trap-err | |
| # https://stackoverflow.com/questions/64786/error-handling-in-bash | |
| # https://stackoverflow.com/questions/24398691/how-to-get-the-real-line-number-of-a-failing-bash-command | |
| # https://unix.stackexchange.com/questions/39623/trap-err-and-echoing-the-error-line | |
| # https://unix.stackexchange.com/questions/462156/how-do-i-find-the-line-number-in-bash-when-an-error-occured | |
| # https://unix.stackexchange.com/questions/365113/how-to-avoid-error-message-during-the-execution-of-a-bash-script | |
| # https://shapeshed.com/unix-exit-codes/#how-to-suppress-exit-statuses |
I could not find a proper full configuration for this online, and I know I'll need this again in the future.
There are two ways to achieve this with some plugins; one via hitting the shell and doing an in-place replace, the other is by doing it with extensions configurable in vscode. Both should give you the same results.