mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-13 16:04:08 +08:00
Compare commits
3 Commits
4ec055b890
...
71cc861806
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71cc861806 | ||
|
|
274df9dc29 | ||
|
|
2b59d052ef |
@ -17,7 +17,7 @@ function title {
|
|||||||
: ${2=$1}
|
: ${2=$1}
|
||||||
|
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty)
|
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty|st*)
|
||||||
print -Pn "\e]2;${2:q}\a" # set window name
|
print -Pn "\e]2;${2:q}\a" # set window name
|
||||||
print -Pn "\e]1;${1:q}\a" # set tab name
|
print -Pn "\e]1;${1:q}\a" # set tab name
|
||||||
;;
|
;;
|
||||||
|
|||||||
@ -51,6 +51,8 @@ alias cget='curl -s https://getcomposer.org/installer | php'
|
|||||||
|
|
||||||
# Add Composer's global binaries to PATH, using Composer if available.
|
# Add Composer's global binaries to PATH, using Composer if available.
|
||||||
if (( $+commands[composer] )); then
|
if (( $+commands[composer] )); then
|
||||||
|
autoload -Uz _store_cache _retrieve_cache
|
||||||
|
|
||||||
_retrieve_cache composer
|
_retrieve_cache composer
|
||||||
|
|
||||||
if [[ -z $__composer_bin_dir ]]; then
|
if [[ -z $__composer_bin_dir ]]; then
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
# Autocompletion for Minikube.
|
# Autocompletion for Minikube.
|
||||||
#
|
#
|
||||||
if (( $+commands[minikube] )); then
|
if (( $+commands[minikube] )); then
|
||||||
__MINICUBE_COMPLETION_FILE="${ZSH_CACHE_DIR}/minicube_completion"
|
__MINIKUBE_COMPLETION_FILE="${ZSH_CACHE_DIR}/minikube_completion"
|
||||||
|
|
||||||
if [[ ! -f $__MINICUBE_COMPLETION_FILE ]]; then
|
if [[ ! -f $__MINIKUBE_COMPLETION_FILE ]]; then
|
||||||
minikube completion zsh >! $__MINICUBE_COMPLETION_FILE
|
minikube completion zsh >! $__MINIKUBE_COMPLETION_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -f $__MINICUBE_COMPLETION_FILE ]] && source $__MINICUBE_COMPLETION_FILE
|
[[ -f $__MINIKUBE_COMPLETION_FILE ]] && source $__MINIKUBE_COMPLETION_FILE
|
||||||
|
|
||||||
unset __MINICUBE_COMPLETION_FILE
|
unset __MINIKUBE_COMPLETION_FILE
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user