aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-05-12 20:22:10 -0300
committerEuAndreh <eu@euandre.org>2022-05-12 20:22:10 -0300
commit5d967b9fe891798ca0b782da6c8eeb93cd777084 (patch)
tree6045e86f284feff300e3d0346b87374e843d638e
parentbin/mkdtemp: Fix name in usage text (diff)
downloaddotfiles-5d967b9fe891798ca0b782da6c8eeb93cd777084.tar.gz
dotfiles-5d967b9fe891798ca0b782da6c8eeb93cd777084.tar.xz
bin/{open,print}: Fix indentation of heredoc strings
-rwxr-xr-xbin/open24
-rwxr-xr-xbin/print38
2 files changed, 31 insertions, 31 deletions
diff --git a/bin/open b/bin/open
index df1ad56..d2eedd3 100755
--- a/bin/open
+++ b/bin/open
@@ -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
diff --git a/bin/print b/bin/print
index 735d8ba..e0d3d6e 100755
--- a/bin/print
+++ b/bin/print
@@ -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() {