Compare commits

...

5 Commits

Author SHA1 Message Date
Indrajit Raychaudhuri
b0173e06ef
Merge 84e0787411 into 427268c64f 2024-12-26 22:46:57 -06:00
Indrajit Raychaudhuri
427268c64f history-substring-search: Update history-substring-search module to current master 2024-12-26 22:32:57 -06:00
Indrajit Raychaudhuri
61d7dc9a72 completion: Update completion module to current master 2024-12-26 22:30:38 -06:00
Indrajit Raychaudhuri
2388b8f873 autosuggestions: Update autosuggestions module to 0.7.1 2024-12-26 22:27:46 -06:00
Indrajit Raychaudhuri
84e0787411 general: Remove redundant usage of cat
In general, the substitution ‘$(cat foo)’ may be replaced by the
equivalent but faster ‘$(<foo)’.

See: https://zsh.sourceforge.io/Doc/Release/Expansion.html#Command-Substitution
2023-05-04 13:58:37 -05:00
10 changed files with 10 additions and 13 deletions

View File

@ -10,7 +10,7 @@
local archive_name path_to_archive _gzip_bin _bzip2_bin _xz_bin _zstd_bin
if (( $# < 2 )); then
cat >&2 <<EOF
>&2 <<EOF
usage: $0 [archive_name.zip] [/path/to/include/into/archive ...]
Where 'archive.zip' uses any of the following extensions:

View File

@ -10,7 +10,7 @@
local verbose
if (( $# == 0 )); then
cat >&2 <<EOF
>&2 <<EOF
usage: $0 [-option] [file ...]
options:

View File

@ -15,7 +15,7 @@ local extract_dir
local _gzip_bin _bzip2_bin _xz_bin _zstd_bin
if (( $# == 0 )); then
cat >&2 <<EOF
>&2 <<EOF
usage: $0 [-option] [file ...]
options:

@ -1 +1 @@
Subproject commit c3d4e576c9c86eac62884bd47c01f6faed043fc5
Subproject commit e52ee8ca55bcc56a17c828767a3f98f22a68d4eb

@ -1 +1 @@
Subproject commit 978e79e12c44b5b1d3e1e2920c537002087b82c2
Subproject commit c160d09fddd28ceb3af5cf80e9253af80e450d96

View File

@ -26,7 +26,7 @@ case "$1" in
zcat $(ls -rt /var/log/dpkg*)
;;
(*)
cat >&2 <<EOF
>&2 <<EOF
Commands:
install - List installed packages
upgrade - List upgraded packages

@ -1 +1 @@
Subproject commit 8dd05bfcc12b0cd1ee9ea64be725b3d9f713cf64
Subproject commit 87ce96b1862928d84b1afe7c173316614b30e301

View File

@ -9,8 +9,7 @@
local usage pattern modifiers invert
usage="$(
cat <<EOF
usage="$(<<EOF
usage: $0 [-option ...] [--] pattern [file ...]
options:

View File

@ -9,8 +9,7 @@
local usage pattern replacement modifiers
usage="$(
cat <<EOF
usage="$(<<EOF
usage: $0 [-option ...] [--] pattern replacement [file ...]
options:

View File

@ -9,8 +9,7 @@
# function zsh-help {
local usage="$(
cat <<EOF
local usage="$(<<EOF
usage: $0 [--help] [--zsh-help-debug] [--all] search term(s)
Options:
--all - search for the term anywhere, not just at the start of a line.