diff options
author | EuAndreh <eu@euandre.org> | 2022-05-12 20:22:10 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-12 20:22:10 -0300 |
commit | 5d967b9fe891798ca0b782da6c8eeb93cd777084 (patch) | |
tree | 6045e86f284feff300e3d0346b87374e843d638e | |
parent | bin/mkdtemp: Fix name in usage text (diff) | |
download | dotfiles-5d967b9fe891798ca0b782da6c8eeb93cd777084.tar.gz dotfiles-5d967b9fe891798ca0b782da6c8eeb93cd777084.tar.xz |
bin/{open,print}: Fix indentation of heredoc strings
-rwxr-xr-x | bin/open | 24 | ||||
-rwxr-xr-x | bin/print | 38 |
2 files changed, 31 insertions, 31 deletions
@@ -3,26 +3,26 @@ set -eu usage() { cat <<-'EOF' - Usage: - open FILE... - open -h -EOF + Usage: + open FILE... + open -h + EOF } help() { cat <<-'EOF' - Options: - -h, --help show this message + Options: + -h, --help show this message - Examples: + Examples: - Open an HTML file on the current $BROWSER: - open index.html + Open an HTML file on the current $BROWSER: + $ open index.html - Open multiple PDF files (with zathura): - open *.pdf -EOF + Open multiple PDF files (with zathura): + $ open *.pdf + EOF } for flag in "$@"; do @@ -3,35 +3,35 @@ set -eu usage() { cat <<-'EOF' - Usage: - print [-d] [-q QUALITY] [FILE...] - print -h -EOF + Usage: + print [-d] [-q QUALITY] [FILE...] + print -h + EOF } help() { cat <<-'EOF' - Options: - -d print duplex/double-sided - -q QUALITY choose the print quality, either: - low, medium (default) or high. - -h, --help show this message + Options: + -d print duplex/double-sided + -q QUALITY choose the print quality, either: + low, medium (default) or high. + -h, --help show this message - Examples: + Examples: - Print the given PostScript file with default quality: - $ print f1.ps + Print the given PostScript file with default quality: + $ print f1.ps - Print multiple PDF files with high quality: - $ print -dq high *.pdf + Print multiple PDF files with high quality: + $ print -dq high *.pdf - Print the file from STDIN, double-sided: - $ print -d < f2.ps + Print the file from STDIN, double-sided: + $ print -d < f2.ps - Print multiple source code files: - $ print src/*.{c,h} -EOF + Print multiple source code files: + $ print src/*.{c,h} + EOF } mkdtemp() { |