mirror of
https://github.com/sorin-ionescu/prezto.git
synced 2025-01-23 11:12:15 +08:00
Compare commits
3 Commits
c2f5c08fc0
...
f4dd80673b
Author | SHA1 | Date | |
---|---|---|---|
|
f4dd80673b | ||
|
9626ce2beb | ||
|
84e0787411 |
@ -10,7 +10,7 @@
|
|||||||
local archive_name path_to_archive _gzip_bin _bzip2_bin _xz_bin _zstd_bin
|
local archive_name path_to_archive _gzip_bin _bzip2_bin _xz_bin _zstd_bin
|
||||||
|
|
||||||
if (( $# < 2 )); then
|
if (( $# < 2 )); then
|
||||||
cat >&2 <<EOF
|
>&2 <<EOF
|
||||||
usage: $0 [archive_name.zip] [/path/to/include/into/archive ...]
|
usage: $0 [archive_name.zip] [/path/to/include/into/archive ...]
|
||||||
|
|
||||||
Where 'archive.zip' uses any of the following extensions:
|
Where 'archive.zip' uses any of the following extensions:
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
local verbose
|
local verbose
|
||||||
|
|
||||||
if (( $# == 0 )); then
|
if (( $# == 0 )); then
|
||||||
cat >&2 <<EOF
|
>&2 <<EOF
|
||||||
usage: $0 [-option] [file ...]
|
usage: $0 [-option] [file ...]
|
||||||
|
|
||||||
options:
|
options:
|
||||||
|
@ -15,7 +15,7 @@ local extract_dir
|
|||||||
local _gzip_bin _bzip2_bin _xz_bin _zstd_bin
|
local _gzip_bin _bzip2_bin _xz_bin _zstd_bin
|
||||||
|
|
||||||
if (( $# == 0 )); then
|
if (( $# == 0 )); then
|
||||||
cat >&2 <<EOF
|
>&2 <<EOF
|
||||||
usage: $0 [-option] [file ...]
|
usage: $0 [-option] [file ...]
|
||||||
|
|
||||||
options:
|
options:
|
||||||
|
@ -26,7 +26,7 @@ case "$1" in
|
|||||||
zcat $(ls -rt /var/log/dpkg*)
|
zcat $(ls -rt /var/log/dpkg*)
|
||||||
;;
|
;;
|
||||||
(*)
|
(*)
|
||||||
cat >&2 <<EOF
|
>&2 <<EOF
|
||||||
Commands:
|
Commands:
|
||||||
install - List installed packages
|
install - List installed packages
|
||||||
upgrade - List upgraded packages
|
upgrade - List upgraded packages
|
||||||
|
@ -23,7 +23,7 @@ if ([[ "$TERM_PROGRAM" = 'iTerm.app' ]] && \
|
|||||||
_tmux_iterm_integration='-CC'
|
_tmux_iterm_integration='-CC'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && "$TERM_PROGRAM" != "vscode" && "$TERMINAL_EMULATOR" != "JetBrains-JediTerm" ]] && ( \
|
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && -z "$VSCODE_RESOLVING_ENVIRONMENT" && "$TERM_PROGRAM" != "vscode" && "$TERMINAL_EMULATOR" != "JetBrains-JediTerm" ]] && ( \
|
||||||
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
|
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
|
||||||
( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \
|
( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \
|
||||||
); then
|
); then
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
local usage pattern modifiers invert
|
local usage pattern modifiers invert
|
||||||
|
|
||||||
usage="$(
|
usage="$(<<EOF
|
||||||
cat <<EOF
|
|
||||||
usage: $0 [-option ...] [--] pattern [file ...]
|
usage: $0 [-option ...] [--] pattern [file ...]
|
||||||
|
|
||||||
options:
|
options:
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
local usage pattern replacement modifiers
|
local usage pattern replacement modifiers
|
||||||
|
|
||||||
usage="$(
|
usage="$(<<EOF
|
||||||
cat <<EOF
|
|
||||||
usage: $0 [-option ...] [--] pattern replacement [file ...]
|
usage: $0 [-option ...] [--] pattern replacement [file ...]
|
||||||
|
|
||||||
options:
|
options:
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
# function zsh-help {
|
# function zsh-help {
|
||||||
|
|
||||||
local usage="$(
|
local usage="$(<<EOF
|
||||||
cat <<EOF
|
|
||||||
usage: $0 [--help] [--zsh-help-debug] [--all] search term(s)
|
usage: $0 [--help] [--zsh-help-debug] [--all] search term(s)
|
||||||
Options:
|
Options:
|
||||||
--all - search for the term anywhere, not just at the start of a line.
|
--all - search for the term anywhere, not just at the start of a line.
|
||||||
|
Loading…
Reference in New Issue
Block a user