forked from extern/ohmyzsh
chore: fix spelling errors across the project (#10459)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
parent
1c1d74c5ec
commit
0e41181d54
@ -26,16 +26,16 @@ def cheatsheet(lines):
|
|||||||
target_aliases.extend(group_list)
|
target_aliases.extend(group_list)
|
||||||
return cheatsheet
|
return cheatsheet
|
||||||
|
|
||||||
def pretty_print_group(key, aliases, hightlight=None):
|
def pretty_print_group(key, aliases, highlight=None):
|
||||||
if len(aliases) == 0:
|
if len(aliases) == 0:
|
||||||
return
|
return
|
||||||
group_hl_formatter = lambda g, hl: termcolor.colored(hl, 'yellow').join([termcolor.colored(part, 'red') for part in ('[%s]' % g).split(hl)])
|
group_hl_formatter = lambda g, hl: termcolor.colored(hl, 'yellow').join([termcolor.colored(part, 'red') for part in ('[%s]' % g).split(hl)])
|
||||||
alias_hl_formatter = lambda alias, hl: termcolor.colored(hl, 'yellow').join([termcolor.colored(part, 'green') for part in ('\t%s = %s' % alias[0:2]).split(hl)])
|
alias_hl_formatter = lambda alias, hl: termcolor.colored(hl, 'yellow').join([termcolor.colored(part, 'green') for part in ('\t%s = %s' % alias[0:2]).split(hl)])
|
||||||
group_formatter = lambda g: termcolor.colored('[%s]' % g, 'red')
|
group_formatter = lambda g: termcolor.colored('[%s]' % g, 'red')
|
||||||
alias_formatter = lambda alias: termcolor.colored('\t%s = %s' % alias[0:2], 'green')
|
alias_formatter = lambda alias: termcolor.colored('\t%s = %s' % alias[0:2], 'green')
|
||||||
if hightlight and len(hightlight)>0:
|
if highlight and len(highlight)>0:
|
||||||
print (group_hl_formatter(key, hightlight))
|
print (group_hl_formatter(key, highlight))
|
||||||
print ('\n'.join([alias_hl_formatter(alias, hightlight) for alias in aliases]))
|
print ('\n'.join([alias_hl_formatter(alias, highlight) for alias in aliases]))
|
||||||
else:
|
else:
|
||||||
print (group_formatter(key))
|
print (group_formatter(key))
|
||||||
print ('\n'.join([alias_formatter(alias) for alias in aliases]))
|
print ('\n'.join([alias_formatter(alias) for alias in aliases]))
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
# Author: Konstantin Lepa <konstantin.lepa@gmail.com>
|
# Author: Konstantin Lepa <konstantin.lepa@gmail.com>
|
||||||
|
|
||||||
"""ANSII Color formatting for output in terminal."""
|
"""ANSI Color formatting for output in terminal."""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import os
|
import os
|
||||||
|
@ -9,7 +9,7 @@ _bower_installed_packages () {
|
|||||||
}
|
}
|
||||||
_bower ()
|
_bower ()
|
||||||
{
|
{
|
||||||
local -a _1st_arguments _no_color _dopts _save_dev _force_lastest _production
|
local -a _1st_arguments _no_color _dopts _save_dev _force_latest _production
|
||||||
local expl
|
local expl
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ _bower ()
|
|||||||
|
|
||||||
_save_dev=('(--save-dev)--save-dev[Save installed packages into the project"s bower.json devDependencies]')
|
_save_dev=('(--save-dev)--save-dev[Save installed packages into the project"s bower.json devDependencies]')
|
||||||
|
|
||||||
_force_lastest=('(--force-latest)--force-latest[Force latest version on conflict]')
|
_force_latest=('(--force-latest)--force-latest[Force latest version on conflict]')
|
||||||
|
|
||||||
_production=('(--production)--production[Do not install project devDependencies]')
|
_production=('(--production)--production[Do not install project devDependencies]')
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ _bower ()
|
|||||||
_arguments \
|
_arguments \
|
||||||
$_dopts \
|
$_dopts \
|
||||||
$_save_dev \
|
$_save_dev \
|
||||||
$_force_lastest \
|
$_force_latest \
|
||||||
$_no_color \
|
$_no_color \
|
||||||
$_production
|
$_production
|
||||||
;;
|
;;
|
||||||
@ -62,7 +62,7 @@ _bower ()
|
|||||||
_arguments \
|
_arguments \
|
||||||
$_dopts \
|
$_dopts \
|
||||||
$_no_color \
|
$_no_color \
|
||||||
$_force_lastest
|
$_force_latest
|
||||||
_bower_installed_packages
|
_bower_installed_packages
|
||||||
compadd "$@" $(echo $bower_package_list)
|
compadd "$@" $(echo $bower_package_list)
|
||||||
;;
|
;;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# catimg script by Eduardo San Martin Morote aka Posva #
|
# catimg script by Eduardo San Martin Morote aka Posva #
|
||||||
# https://posva.net #
|
# https://posva.net #
|
||||||
# #
|
# #
|
||||||
# Ouput the content of an image to the stdout using the 256 colors of the #
|
# Output the content of an image to the stdout using the 256 colors of the #
|
||||||
# terminal. #
|
# terminal. #
|
||||||
# GitHub: https://github.com/posva/catimg #
|
# GitHub: https://github.com/posva/catimg #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# catimg script by Eduardo San Martin Morote aka Posva #
|
# catimg script by Eduardo San Martin Morote aka Posva #
|
||||||
# https://posva.net #
|
# https://posva.net #
|
||||||
# #
|
# #
|
||||||
# Ouput the content of an image to the stdout using the 256 colors of the #
|
# Output the content of an image to the stdout using the 256 colors of the #
|
||||||
# terminal. #
|
# terminal. #
|
||||||
# GitHub: https://github.com/posva/catimg #
|
# GitHub: https://github.com/posva/catimg #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -228,7 +228,7 @@ Chuck Norris once punched the ground to stop an earthquake. The resulting afters
|
|||||||
%
|
%
|
||||||
Chuck Norris once round-house kicked a salesman. Over the phone.
|
Chuck Norris once round-house kicked a salesman. Over the phone.
|
||||||
%
|
%
|
||||||
Chuck Norris once rounhouse kicked a football. The astronomical society now considers it a planet.
|
Chuck Norris once roundhouse kicked a football. The astronomical society now considers it a planet.
|
||||||
%
|
%
|
||||||
Chuck Norris once thought he was wrong. He was, however, mistaken.
|
Chuck Norris once thought he was wrong. He was, however, mistaken.
|
||||||
%
|
%
|
||||||
@ -342,7 +342,7 @@ Every time there's an earthquake, you know Chuck Norris is hungry. The earthquak
|
|||||||
%
|
%
|
||||||
Evolution's driving mechanism is nature's desperate attempt to escape Chuck Norris.
|
Evolution's driving mechanism is nature's desperate attempt to escape Chuck Norris.
|
||||||
%
|
%
|
||||||
Fear of spiders is arachnaphobia. Fear of tight spaces is claustrophobia. Fear of Chuck Norris is called Logic.
|
Fear of spiders is arachnophobia. Fear of tight spaces is claustrophobia. Fear of Chuck Norris is called Logic.
|
||||||
%
|
%
|
||||||
Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
|
Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
|
||||||
%
|
%
|
||||||
@ -426,7 +426,7 @@ Some people ask for a Kleenex when they sneeze, Chuck Norris asks for a body bag
|
|||||||
%
|
%
|
||||||
Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
|
Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
|
||||||
%
|
%
|
||||||
Staring at Chuck Norris for extended periods of time without proper eye protection will cause blindess, and possibly foot sized brusies on the face.
|
Staring at Chuck Norris for extended periods of time without proper eye protection will cause blindness, and possibly foot sized bruises on the face.
|
||||||
%
|
%
|
||||||
Taking Karate Lessons = $100, Buying MMA DVD's = $150, Subscribing to a UFC event = $50, Getting a Roundhouse Kick from Chuck Norris = PRICELESS.
|
Taking Karate Lessons = $100, Buying MMA DVD's = $150, Subscribing to a UFC event = $50, Getting a Roundhouse Kick from Chuck Norris = PRICELESS.
|
||||||
%
|
%
|
||||||
@ -452,7 +452,7 @@ The best part of waking up is not Folgers in your cup. it's knowing that Chuck N
|
|||||||
%
|
%
|
||||||
The chief export of Chuck Norris is pain.
|
The chief export of Chuck Norris is pain.
|
||||||
%
|
%
|
||||||
The dictionary references Chuck Norris several times, he is metioned under Fear, Law, Order and Chucktatorship.
|
The dictionary references Chuck Norris several times, he is mentioned under Fear, Law, Order and Chucktatorship.
|
||||||
%
|
%
|
||||||
The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
|
The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
|
||||||
%
|
%
|
||||||
@ -468,7 +468,7 @@ The only way sharks will come near CN underwater is when CN is inside of a cage.
|
|||||||
%
|
%
|
||||||
The only word that rhymes with orange is Chuck Norris.
|
The only word that rhymes with orange is Chuck Norris.
|
||||||
%
|
%
|
||||||
The producers of the movie "The Last Airbender" are now in talks with Chuck Norris in Order to star him in their next sequal "The Last Skull Bender".
|
The producers of the movie "The Last Airbender" are now in talks with Chuck Norris in Order to star him in their next sequel "The Last Skull Bender".
|
||||||
%
|
%
|
||||||
The quickest way to a man's heart is with Chuck Norris' fist.
|
The quickest way to a man's heart is with Chuck Norris' fist.
|
||||||
%
|
%
|
||||||
|
@ -82,7 +82,7 @@ colorize_less() {
|
|||||||
# This variable tells less to pipe every file through the specified command
|
# This variable tells less to pipe every file through the specified command
|
||||||
# (see the man page of less INPUT PREPROCESSOR).
|
# (see the man page of less INPUT PREPROCESSOR).
|
||||||
# 'zsh -ic "colorize_cat %s 2> /dev/null"' would not work for huge files like
|
# 'zsh -ic "colorize_cat %s 2> /dev/null"' would not work for huge files like
|
||||||
# the ~/.zsh_history. For such files the tty of the preprocessor will be supended.
|
# the ~/.zsh_history. For such files the tty of the preprocessor will be suspended.
|
||||||
# Therefore we must source this file to make colorize_cat available in the
|
# Therefore we must source this file to make colorize_cat available in the
|
||||||
# preprocessor without the interactive mode.
|
# preprocessor without the interactive mode.
|
||||||
# `2>/dev/null` will suppress the error for large files 'broken pipe' of the python
|
# `2>/dev/null` will suppress the error for large files 'broken pipe' of the python
|
||||||
|
@ -36,7 +36,7 @@ arguments=(
|
|||||||
'--reinstall[Reinstall the distribution even if you already have the latest version installed]'
|
'--reinstall[Reinstall the distribution even if you already have the latest version installed]'
|
||||||
'--interactive[Turn on interactive configure]'
|
'--interactive[Turn on interactive configure]'
|
||||||
|
|
||||||
'--scandeps[Scan the depencencies of given modules and output the tree in a text format]'
|
'--scandeps[Scan the dependencies of given modules and output the tree in a text format]'
|
||||||
'--format[Specify what format to display the scanned dependency tree]:scandeps format:(tree json yaml dists)'
|
'--format[Specify what format to display the scanned dependency tree]:scandeps format:(tree json yaml dists)'
|
||||||
|
|
||||||
'--save-dists[Specify the optional directory path to copy downloaded tarballs]'
|
'--save-dists[Specify the optional directory path to copy downloaded tarballs]'
|
||||||
|
@ -90,7 +90,7 @@ __docker-machine_filters() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
__get_swarm_discovery() {
|
__get_swarm_discovery() {
|
||||||
declare -a masters serivces
|
declare -a masters services
|
||||||
local service
|
local service
|
||||||
services=()
|
services=()
|
||||||
masters=($(docker-machine ls -f {{.Swarm}} |grep '(master)' |awk '{print $1}'))
|
masters=($(docker-machine ls -f {{.Swarm}} |grep '(master)' |awk '{print $1}'))
|
||||||
@ -169,7 +169,7 @@ __get_create_argument() {
|
|||||||
__docker-machine_subcommand() {
|
__docker-machine_subcommand() {
|
||||||
local -a opts_help
|
local -a opts_help
|
||||||
opts_help=("(- :)--help[Print usage]")
|
opts_help=("(- :)--help[Print usage]")
|
||||||
local -a opts_only_host opts_driver opts_storage_driver opts_stragery
|
local -a opts_only_host opts_driver opts_storage_driver opts_state
|
||||||
opts_only_host=(
|
opts_only_host=(
|
||||||
"$opts_help"
|
"$opts_help"
|
||||||
"*:host:__docker-machine_hosts_all"
|
"*:host:__docker-machine_hosts_all"
|
||||||
@ -330,7 +330,7 @@ _docker-machine() {
|
|||||||
_arguments -C \
|
_arguments -C \
|
||||||
"(- :)"{-h,--help}"[Show help]" \
|
"(- :)"{-h,--help}"[Show help]" \
|
||||||
"(-D --debug)"{-D,--debug}"[Enable debug mode]" \
|
"(-D --debug)"{-D,--debug}"[Enable debug mode]" \
|
||||||
'(-s --stroage-path)'{-s,--storage-path}'[Configures storage path]:file:_files' \
|
'(-s --storage-path)'{-s,--storage-path}'[Configures storage path]:file:_files' \
|
||||||
'--tls-ca-cert[CA to verify remotes against]:file:_files' \
|
'--tls-ca-cert[CA to verify remotes against]:file:_files' \
|
||||||
'--tls-ca-key[Private key to generate certificates]:file:_files' \
|
'--tls-ca-key[Private key to generate certificates]:file:_files' \
|
||||||
'--tls-client-cert[Client cert to use for TLS]:file:_files' \
|
'--tls-client-cert[Client cert to use for TLS]:file:_files' \
|
||||||
|
@ -12,7 +12,7 @@ _dotnet_zsh_complete()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This is not a variable assigment, don't remove spaces!
|
# This is not a variable assignment, don't remove spaces!
|
||||||
_values = "${(ps:\n:)completions}"
|
_values = "${(ps:\n:)completions}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ unset _omz_emoji_plugin_dir
|
|||||||
|
|
||||||
# These additional emoji are not in the definition file, but are useful in conjunction with it
|
# These additional emoji are not in the definition file, but are useful in conjunction with it
|
||||||
|
|
||||||
# This is a combinin character that can be placed after any other character to surround
|
# This is a combining character that can be placed after any other character to surround
|
||||||
# it in a "keycap" symbol.
|
# it in a "keycap" symbol.
|
||||||
# The digits 0-9 are already in the emoji table as keycap_digit_<N>, keycap_ten, etc.
|
# The digits 0-9 are already in the emoji table as keycap_digit_<N>, keycap_ten, etc.
|
||||||
# It's unclear whether this should be in the $emoji array, because those characters are all ones
|
# It's unclear whether this should be in the $emoji array, because those characters are all ones
|
||||||
|
@ -18,7 +18,7 @@ default fastfile_var_prefix "§"
|
|||||||
# 1. name - The name of the shortcut (default: name of the file)
|
# 1. name - The name of the shortcut (default: name of the file)
|
||||||
# 2. file - The file or directory to make the shortcut for
|
# 2. file - The file or directory to make the shortcut for
|
||||||
# STDOUT:
|
# STDOUT:
|
||||||
# => fastfle_print
|
# => fastfile_print
|
||||||
#
|
#
|
||||||
function fastfile() {
|
function fastfile() {
|
||||||
test "$2" || 2="."
|
test "$2" || 2="."
|
||||||
@ -75,14 +75,14 @@ function fastfile_print() {
|
|||||||
# List all shortcuts
|
# List all shortcuts
|
||||||
#
|
#
|
||||||
# STDOUT:
|
# STDOUT:
|
||||||
# (=> fastfle_print) for each shortcut
|
# (=> fastfile_print) for each shortcut
|
||||||
#
|
#
|
||||||
function fastfile_ls() {
|
function fastfile_ls() {
|
||||||
for f in "${fastfile_dir}"/*(NF); do
|
for f in "${fastfile_dir}"/*(NF); do
|
||||||
file=`basename "$f"` # To enable simpler handeling of spaces in file names
|
file=`basename "$f"` # To enable simpler handling of spaces in file names
|
||||||
varkey=`echo "$file" | tr " " "_"`
|
varkey=`echo "$file" | tr " " "_"`
|
||||||
|
|
||||||
# Special format for colums
|
# Special format for columns
|
||||||
echo "${fastfile_var_prefix}${varkey}|->|$(fastfile_get "$file")"
|
echo "${fastfile_var_prefix}${varkey}|->|$(fastfile_get "$file")"
|
||||||
done | column -t -s "|"
|
done | column -t -s "|"
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ function fastfile_ls() {
|
|||||||
# Arguments:
|
# Arguments:
|
||||||
# 1. name - The name of the shortcut (default: name of the file)
|
# 1. name - The name of the shortcut (default: name of the file)
|
||||||
# STDOUT:
|
# STDOUT:
|
||||||
# => fastfle_print
|
# => fastfile_print
|
||||||
#
|
#
|
||||||
function fastfile_rm() {
|
function fastfile_rm() {
|
||||||
fastfile_print "$1"
|
fastfile_print "$1"
|
||||||
@ -105,7 +105,7 @@ function fastfile_rm() {
|
|||||||
#
|
#
|
||||||
function fastfile_sync() {
|
function fastfile_sync() {
|
||||||
for f in "${fastfile_dir}"/*(NF); do
|
for f in "${fastfile_dir}"/*(NF); do
|
||||||
file=`basename "$f"` # To enable simpler handeling of spaces in file names
|
file=`basename "$f"` # To enable simpler handling of spaces in file names
|
||||||
varkey=`echo "$file" | tr " " "_"`
|
varkey=`echo "$file" | tr " " "_"`
|
||||||
|
|
||||||
alias -g "${fastfile_var_prefix}${varkey}"="'$(fastfile_get "$file")'"
|
alias -g "${fastfile_var_prefix}${varkey}"="'$(fastfile_get "$file")'"
|
||||||
|
@ -10,4 +10,4 @@ plugins=(... fd)
|
|||||||
|
|
||||||
Completion is taken from the fd release [`7.3.0`](https://github.com/sharkdp/fd/releases/tag/v7.3.0).
|
Completion is taken from the fd release [`7.3.0`](https://github.com/sharkdp/fd/releases/tag/v7.3.0).
|
||||||
|
|
||||||
Updated on Febrary 13th, 2019.
|
Updated on February 13th, 2019.
|
||||||
|
@ -18,4 +18,4 @@ plugins=(... flutter)
|
|||||||
| `flb` | `flutter build` | Build flutter application |
|
| `flb` | `flutter build` | Build flutter application |
|
||||||
| `flattach` | `flutter attach` | Attaches flutter to a running flutter application with enabled observatory |
|
| `flattach` | `flutter attach` | Attaches flutter to a running flutter application with enabled observatory |
|
||||||
| `flget` | `flutter packages get` | Installs dependencies |
|
| `flget` | `flutter packages get` | Installs dependencies |
|
||||||
| `flc` | `flutter clean` | Cleans flutter porject |
|
| `flc` | `flutter clean` | Cleans flutter project |
|
||||||
|
@ -26,7 +26,7 @@ export FZF_BASE=/path/to/fzf/install/dir
|
|||||||
Set default command to use when input is tty:
|
Set default command to use when input is tty:
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
export FZF_DEFAULT_COMMAND='<your fzf default commmand>'
|
export FZF_DEFAULT_COMMAND='<your fzf default command>'
|
||||||
```
|
```
|
||||||
|
|
||||||
If not set, the plugin will try to set it to these, in the order in which they're found:
|
If not set, the plugin will try to set it to these, in the order in which they're found:
|
||||||
|
@ -3383,7 +3383,7 @@ _git_worktree ()
|
|||||||
# Here we are not completing an --option, it's either the
|
# Here we are not completing an --option, it's either the
|
||||||
# path or a ref.
|
# path or a ref.
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
-b|-B) # Complete refs for branch to be created/reseted.
|
-b|-B) # Complete refs for branch to be created/reset.
|
||||||
__git_complete_refs
|
__git_complete_refs
|
||||||
;;
|
;;
|
||||||
-*) # The previous word is an -o|--option without an
|
-*) # The previous word is an -o|--option without an
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
_enumerateGrailsScripts() {
|
_enumerateGrailsScripts() {
|
||||||
# Default directoryies
|
# Default directories
|
||||||
directories=($GRAILS_HOME/scripts ~/.grails/scripts ./scripts)
|
directories=($GRAILS_HOME/scripts ~/.grails/scripts ./scripts)
|
||||||
|
|
||||||
# Check all of the plugins directories, if they exist
|
# Check all of the plugins directories, if they exist
|
||||||
|
@ -82,7 +82,7 @@ function __grunt() {
|
|||||||
update_msg=' (cache updated)'
|
update_msg=' (cache updated)'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make optioins completion.
|
# Make options completion.
|
||||||
if [[ ${#__grunt_opts} -gt 0 ]]; then
|
if [[ ${#__grunt_opts} -gt 0 ]]; then
|
||||||
opts+=("${__grunt_opts[@]}")
|
opts+=("${__grunt_opts[@]}")
|
||||||
fi
|
fi
|
||||||
@ -161,7 +161,7 @@ function __grunt_update_cache() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $is_updating -ne 0 ]]; then
|
if [[ $is_updating -ne 0 ]]; then
|
||||||
# Update caceh.
|
# Update cache.
|
||||||
__grunt_version=$version
|
__grunt_version=$version
|
||||||
__grunt_gruntfile=$gruntfile
|
__grunt_gruntfile=$gruntfile
|
||||||
is_updating=1
|
is_updating=1
|
||||||
|
@ -243,8 +243,8 @@ _history-substring-search-begin() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Escape and join query parts with wildcard character '*' as seperator
|
# Escape and join query parts with wildcard character '*' as separator
|
||||||
# `(j:CHAR:)` join array to string with CHAR as seperator
|
# `(j:CHAR:)` join array to string with CHAR as separator
|
||||||
#
|
#
|
||||||
local search_pattern="*${(j:*:)_history_substring_search_query_parts[@]//(#m)[\][()|\\*?#<>~^]/\\$MATCH}*"
|
local search_pattern="*${(j:*:)_history_substring_search_query_parts[@]//(#m)[\][()|\\*?#<>~^]/\\$MATCH}*"
|
||||||
|
|
||||||
|
@ -596,7 +596,7 @@ case $MAIN_SUBCOMMAND in
|
|||||||
'(-v --headers)'{-v,--headers}'[Print table headers (Hash, Size, Name).]' \
|
'(-v --headers)'{-v,--headers}'[Print table headers (Hash, Size, Name).]' \
|
||||||
'--resolve-type[Resolve linked objects to find out their types. Default: true.]' \
|
'--resolve-type[Resolve linked objects to find out their types. Default: true.]' \
|
||||||
'--size[Resolve linked objects to find out their file size. Default: true.]' \
|
'--size[Resolve linked objects to find out their file size. Default: true.]' \
|
||||||
'(-s --stream)'{-s,--stream}'[Enable exprimental streaming of directory entries as they are traversed.]' \
|
'(-s --stream)'{-s,--stream}'[Enable experimental streaming of directory entries as they are traversed.]' \
|
||||||
;;
|
;;
|
||||||
(mount)
|
(mount)
|
||||||
_arguments \
|
_arguments \
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
if [[ "$OSTYPE" == darwin* ]] && [[ -n "$ITERM_SESSION_ID" ]] ; then
|
if [[ "$OSTYPE" == darwin* ]] && [[ -n "$ITERM_SESSION_ID" ]] ; then
|
||||||
|
|
||||||
###
|
###
|
||||||
# Executes an arbitrary iTerm2 command via an escape code sequce.
|
# Executes an arbitrary iTerm2 command via an escape code sequence.
|
||||||
# See https://iterm2.com/documentation-escape-codes.html for all supported commands.
|
# See https://iterm2.com/documentation-escape-codes.html for all supported commands.
|
||||||
# Example: $ _iterm2_command "1337;StealFocus"
|
# Example: $ _iterm2_command "1337;StealFocus"
|
||||||
function _iterm2_command() {
|
function _iterm2_command() {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# jenv plugin
|
# jenv plugin
|
||||||
|
|
||||||
[jenv](https://www.jenv.be/) is a Java version manager similiar to [rbenv](https://github.com/rbenv/rbenv)
|
[jenv](https://www.jenv.be/) is a Java version manager similar to [rbenv](https://github.com/rbenv/rbenv)
|
||||||
and [pyenv](https://github.com/yyuu/pyenv).
|
and [pyenv](https://github.com/yyuu/pyenv).
|
||||||
|
|
||||||
This plugin initializes jenv and provides the `jenv_prompt_info` function to add Java
|
This plugin initializes jenv and provides the `jenv_prompt_info` function to add Java
|
||||||
|
@ -191,7 +191,7 @@ while [ $# -gt 0 ]; do
|
|||||||
-d "grant_type=client_credentials" \
|
-d "grant_type=client_credentials" \
|
||||||
)
|
)
|
||||||
if ! [[ "${SPOTIFY_TOKEN_RESPONSE_DATA}" =~ "access_token" ]]; then
|
if ! [[ "${SPOTIFY_TOKEN_RESPONSE_DATA}" =~ "access_token" ]]; then
|
||||||
cecho "Autorization failed, please check ${USER_CONFG_FILE}"
|
cecho "Authorization failed, please check ${USER_CONFG_FILE}"
|
||||||
cecho "${SPOTIFY_TOKEN_RESPONSE_DATA}"
|
cecho "${SPOTIFY_TOKEN_RESPONSE_DATA}"
|
||||||
showAPIHelp
|
showAPIHelp
|
||||||
return 1
|
return 1
|
||||||
|
@ -61,7 +61,7 @@ ZSH_THEME_HG_PROMPT_CLEAN="%{$fg[magenta]%})"
|
|||||||
This is the same as git plugin does. **Note**: additional changes to `.zshrc`, or using a theme designed
|
This is the same as git plugin does. **Note**: additional changes to `.zshrc`, or using a theme designed
|
||||||
to use `hg_prompt_info`, are required in order for this to work.
|
to use `hg_prompt_info`, are required in order for this to work.
|
||||||
|
|
||||||
## Mantainers
|
## Maintainers
|
||||||
|
|
||||||
- [ptrv](https://github.com/ptrv): original creator
|
- [ptrv](https://github.com/ptrv): original creator
|
||||||
- [oshybystyi](https://github.com/oshybystyi)
|
- [oshybystyi](https://github.com/oshybystyi)
|
||||||
|
@ -10,7 +10,7 @@ plugins=(... npm)
|
|||||||
|
|
||||||
## Aliases
|
## Aliases
|
||||||
|
|
||||||
| Alias | Command | Descripton |
|
| Alias | Command | Description |
|
||||||
|:------ |:-----------------------------|:----------------------------------------------------------------|
|
|:------ |:-----------------------------|:----------------------------------------------------------------|
|
||||||
| `npmg` | `npm i -g` | Install dependencies globally |
|
| `npmg` | `npm i -g` | Install dependencies globally |
|
||||||
| `npmS` | `npm i -S` | Install and save to dependencies in your package.json |
|
| `npmS` | `npm i -S` | Install and save to dependencies in your package.json |
|
||||||
|
@ -29,6 +29,6 @@ _arguments -s -S \
|
|||||||
"--max-line-length[set maximum allowed line length (default: 79)]::n:_files" \
|
"--max-line-length[set maximum allowed line length (default: 79)]::n:_files" \
|
||||||
"--format[set the error format \[default|pylint|<custom>\]]::format:_files" \
|
"--format[set the error format \[default|pylint|<custom>\]]::format:_files" \
|
||||||
"--diff[report only lines changed according to the unified diff received on STDIN]" \
|
"--diff[report only lines changed according to the unified diff received on STDIN]" \
|
||||||
"--benchmark[measure processing speed are read from the \[pep8\] section of the tox.ini fg file located in any parent folder of the path(s) llowed options are: exclude, filename, select, ngth, count, format, quiet, show-pep8, show-source, .]" \
|
"--benchmark[measure processing speed are read from the \[pep8\] section of the tox.ini fg file located in any parent folder of the path(s) allowed options are: exclude, filename, select, ngth, count, format, quiet, show-pep8, show-source, .]" \
|
||||||
"--config[user config file location (default: /home/gsemet/.config/pep8)]::path:_files" \
|
"--config[user config file location (default: /home/gsemet/.config/pep8)]::path:_files" \
|
||||||
"*::args:_files"
|
"*::args:_files"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# please plugin
|
# please plugin
|
||||||
|
|
||||||
[Please](https://please.build) is a cross-language build system with an emphasis on
|
[Please](https://please.build) is a cross-language build system with an emphasis on
|
||||||
high performance, extensibility and reproduceability. It supports a number of popular
|
high performance, extensibility and reproducibility. It supports a number of popular
|
||||||
languages and can automate nearly any aspect of your build process.
|
languages and can automate nearly any aspect of your build process.
|
||||||
|
|
||||||
This plugin adds autocomplete and major aliases for `plz`, the command line tool for
|
This plugin adds autocomplete and major aliases for `plz`, the command line tool for
|
||||||
|
@ -124,7 +124,7 @@ logs_options=(
|
|||||||
'--out[only shows standard output]'
|
'--out[only shows standard output]'
|
||||||
'--lines[output the last N lines, instead of the last 15 by default]'
|
'--lines[output the last N lines, instead of the last 15 by default]'
|
||||||
'--timestamp[add timestamps (default format YYYY-MM-DD-HH:mm:ss)]'
|
'--timestamp[add timestamps (default format YYYY-MM-DD-HH:mm:ss)]'
|
||||||
'--nostream[print logs without lauching the log stream]'
|
'--nostream[print logs without launching the log stream]'
|
||||||
'(-h --help)'{-h,--help}'[output usage information]'
|
'(-h --help)'{-h,--help}'[output usage information]'
|
||||||
$id_all_comp
|
$id_all_comp
|
||||||
)
|
)
|
||||||
@ -139,7 +139,7 @@ case "$words[1]" in
|
|||||||
stop|restart|delete|reload|reset)
|
stop|restart|delete|reload|reset)
|
||||||
_arguments $id_all_comp && return 0
|
_arguments $id_all_comp && return 0
|
||||||
;;
|
;;
|
||||||
env|inspect|monitor|unmonitor|discribe)
|
env|inspect|monitor|unmonitor|describe)
|
||||||
_arguments $id_comp && return 0
|
_arguments $id_comp && return 0
|
||||||
;;
|
;;
|
||||||
deploy|startOrRestart|startOrReload)
|
deploy|startOrRestart|startOrReload)
|
||||||
|
@ -15,7 +15,7 @@ _1st_arguments=(
|
|||||||
'restart:restarts the pow app linked to the current directory'
|
'restart:restarts the pow app linked to the current directory'
|
||||||
'always_restart:reload the pow app after each request'
|
'always_restart:reload the pow app after each request'
|
||||||
'always_restart_off:do not reload the pow app after each request'
|
'always_restart_off:do not reload the pow app after each request'
|
||||||
'rename:rename the current pow app to [NAME] or renmae [OLD] to [NEW]'
|
'rename:rename the current pow app to [NAME] or rename [OLD] to [NEW]'
|
||||||
'environment:run the this pow app in a different environment (aliased `env`)'
|
'environment:run the this pow app in a different environment (aliased `env`)'
|
||||||
'browse:opens and navigates the default browser to this app'
|
'browse:opens and navigates the default browser to this app'
|
||||||
'logs:tail the application logs'
|
'logs:tail the application logs'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# over the years. We will miss you dearly.
|
# over the years. We will miss you dearly.
|
||||||
alias jimweirich="rake"
|
alias jimweirich="rake"
|
||||||
|
|
||||||
alias rake="noglob rake" # allows square brackts for rake task invocation
|
alias rake="noglob rake" # allows square brackets for rake task invocation
|
||||||
alias brake='noglob bundle exec rake' # execute the bundled rake gem
|
alias brake='noglob bundle exec rake' # execute the bundled rake gem
|
||||||
alias srake='noglob sudo rake' # noglob must come before sudo
|
alias srake='noglob sudo rake' # noglob must come before sudo
|
||||||
alias sbrake='noglob sudo bundle exec rake' # altogether now ...
|
alias sbrake='noglob sudo bundle exec rake' # altogether now ...
|
||||||
|
@ -32,7 +32,7 @@ _rebar () {
|
|||||||
'create[Create skel based on template and vars]' \
|
'create[Create skel based on template and vars]' \
|
||||||
'create-app[Create simple app skel]' \
|
'create-app[Create simple app skel]' \
|
||||||
'create-node[Create simple node skel]' \
|
'create-node[Create simple node skel]' \
|
||||||
'list-template[List avaiavle templates]' \
|
'list-template[List available templates]' \
|
||||||
'doc[Generate Erlang program documentation]' \
|
'doc[Generate Erlang program documentation]' \
|
||||||
'check-deps[Display to be fetched dependencies]' \
|
'check-deps[Display to be fetched dependencies]' \
|
||||||
'get-deps[Fetch dependencies]' \
|
'get-deps[Fetch dependencies]' \
|
||||||
|
@ -8,7 +8,7 @@ _1st_arguments=(
|
|||||||
'append:append a value to a key'
|
'append:append a value to a key'
|
||||||
'auth:authenticate to the server'
|
'auth:authenticate to the server'
|
||||||
'bgrewriteeaof:asynchronously rewrite the append-only file'
|
'bgrewriteeaof:asynchronously rewrite the append-only file'
|
||||||
'bgsave:asynchornously save the dataset to disk'
|
'bgsave:asynchronously save the dataset to disk'
|
||||||
'blpop:remove and get the first element in a list, or block until one is available'
|
'blpop:remove and get the first element in a list, or block until one is available'
|
||||||
'brpop:remove and get the last element in a list, or block until one is available'
|
'brpop:remove and get the last element in a list, or block until one is available'
|
||||||
'brpoplpush:pop a value from a list, push it to another list and return it; or block until one is available'
|
'brpoplpush:pop a value from a list, push it to another list and return it; or block until one is available'
|
||||||
@ -17,9 +17,9 @@ _1st_arguments=(
|
|||||||
# 'config resetstat: reset the stats returned by INFO'
|
# 'config resetstat: reset the stats returned by INFO'
|
||||||
'dbsize:return the number of keys in the selected database'
|
'dbsize:return the number of keys in the selected database'
|
||||||
# 'debug object:get debugging information about a key'
|
# 'debug object:get debugging information about a key'
|
||||||
# 'debug setgfault:make the server crash'
|
# 'debug segfault:make the server crash'
|
||||||
'decr:decrement the integer value of a key by one'
|
'decr:decrement the integer value of a key by one'
|
||||||
'decrby:decrement the integet value of a key by the given number'
|
'decrby:decrement the integer value of a key by the given number'
|
||||||
'del:delete a key'
|
'del:delete a key'
|
||||||
'discard:discard all commands issued after MULTI'
|
'discard:discard all commands issued after MULTI'
|
||||||
'echo:echo the given string'
|
'echo:echo the given string'
|
||||||
@ -63,7 +63,7 @@ _1st_arguments=(
|
|||||||
'mget:get the values of all the given keys'
|
'mget:get the values of all the given keys'
|
||||||
'monitor:listen for all requests received by the server in real time'
|
'monitor:listen for all requests received by the server in real time'
|
||||||
'move:move a key to another database'
|
'move:move a key to another database'
|
||||||
'mset:set multiple keys to muliple values'
|
'mset:set multiple keys to multiple values'
|
||||||
'msetnx:set multiple keys tom ultiple values, only if none of the keys exist'
|
'msetnx:set multiple keys tom ultiple values, only if none of the keys exist'
|
||||||
'multi:mark the start of a transaction block'
|
'multi:mark the start of a transaction block'
|
||||||
'object:inspect the internals of Redis objects'
|
'object:inspect the internals of Redis objects'
|
||||||
@ -122,7 +122,7 @@ _1st_arguments=(
|
|||||||
'zrem:remove a member from a sorted set'
|
'zrem:remove a member from a sorted set'
|
||||||
'zremrangebyrank:remove all members in a sorted set within the given indexes'
|
'zremrangebyrank:remove all members in a sorted set within the given indexes'
|
||||||
'zremrangebyscore:remove all members in a sorted set within the given scores'
|
'zremrangebyscore:remove all members in a sorted set within the given scores'
|
||||||
'zrevrange:return a range of membrs in a sorted set, by index, with scores ordered from high to low'
|
'zrevrange:return a range of members in a sorted set, by index, with scores ordered from high to low'
|
||||||
'zrevrangebyscore:return a range of members in a sorted set, by score, with scores ordered from high to low'
|
'zrevrangebyscore:return a range of members in a sorted set, by score, with scores ordered from high to low'
|
||||||
'zrevrank:determine the index of a member in a sorted set, with scores ordered from high to low'
|
'zrevrank:determine the index of a member in a sorted set, with scores ordered from high to low'
|
||||||
'zscore:get the score associated with the given member in a sorted set'
|
'zscore:get the score associated with the given member in a sorted set'
|
||||||
|
@ -145,7 +145,7 @@ _master_options=(
|
|||||||
'(-v --verbose)'{-v,--verbose}'[Turn on command verbosity, display jid and active job queries]'
|
'(-v --verbose)'{-v,--verbose}'[Turn on command verbosity, display jid and active job queries]'
|
||||||
'--hide-timeout[Hide minions that timeout]'
|
'--hide-timeout[Hide minions that timeout]'
|
||||||
'(-b --batch --batch-size)'{-b,--batch,--batch-size}'[Execute the salt job in batch mode, pass number or percentage to batch.]:Batch Size:'
|
'(-b --batch --batch-size)'{-b,--batch,--batch-size}'[Execute the salt job in batch mode, pass number or percentage to batch.]:Batch Size:'
|
||||||
'(-a --auth --eauth --extrenal-auth)'{-a,--auth,--eauth,--external-auth}'[Specify an external authentication system to use.]:eauth:'
|
'(-a --auth --eauth --external-auth)'{-a,--auth,--eauth,--external-auth}'[Specify an external authentication system to use.]:eauth:'
|
||||||
'(-T --make-token)'{-T,--make-token}'[Generate and save an authentication token for re-use.]'
|
'(-T --make-token)'{-T,--make-token}'[Generate and save an authentication token for re-use.]'
|
||||||
'--return[Set an alternative return method.]:Returners:_path_files -W "$salt_dir/returners" -g "[^_]*.py(\:r)"'
|
'--return[Set an alternative return method.]:Returners:_path_files -W "$salt_dir/returners" -g "[^_]*.py(\:r)"'
|
||||||
'(-d --doc --documentation)'{-d,--doc,--documentation}'[Return the documentation for the specified module]'
|
'(-d --doc --documentation)'{-d,--doc,--documentation}'[Return the documentation for the specified module]'
|
||||||
|
@ -190,7 +190,7 @@ Y_opts=(
|
|||||||
"-Yshow-symkinds[Print abbreviated symbol kinds next to symbol names]"
|
"-Yshow-symkinds[Print abbreviated symbol kinds next to symbol names]"
|
||||||
"-Yshow-trees[Print detailed ASTs (requires -Xprint\:phase)]"
|
"-Yshow-trees[Print detailed ASTs (requires -Xprint\:phase)]"
|
||||||
"-Yshow-trees-compact[Print detailed ASTs in compact form (requires -Xprint\:)]"
|
"-Yshow-trees-compact[Print detailed ASTs in compact form (requires -Xprint\:)]"
|
||||||
"-Yshow-trees-stringified[Print stringifications along with detailed ASTs (requires -Xprint\:)]"
|
"-Yshow-trees-stringified[Print stringification along with detailed ASTs (requires -Xprint\:)]"
|
||||||
"-Ystatistics[Print compiler statistics]"
|
"-Ystatistics[Print compiler statistics]"
|
||||||
"-Ystruct-dispatch\:-[Structural method dispatch policy (default\: poly-cache)]:policy name:(no-cache mono-cache poly-cache invoke-dynamic)"
|
"-Ystruct-dispatch\:-[Structural method dispatch policy (default\: poly-cache)]:policy name:(no-cache mono-cache poly-cache invoke-dynamic)"
|
||||||
|
|
||||||
|
@ -900,7 +900,7 @@ case "$words[1]" in
|
|||||||
force:data:tree:export)
|
force:data:tree:export)
|
||||||
_command_args=(
|
_command_args=(
|
||||||
'(-q|--query)'{-q,--query}'[soql query, or filepath of file containing a soql query, to retrieve records]' \
|
'(-q|--query)'{-q,--query}'[soql query, or filepath of file containing a soql query, to retrieve records]' \
|
||||||
'(-p|--plan)'{-p,--plan}'[generate mulitple sobject tree files and a plan definition file for aggregated import]' \
|
'(-p|--plan)'{-p,--plan}'[generate multiple sobject tree files and a plan definition file for aggregated import]' \
|
||||||
'(-x|--prefix)'{-x,--prefix}'[prefix of generated files]' \
|
'(-x|--prefix)'{-x,--prefix}'[prefix of generated files]' \
|
||||||
'(-d|--outputdir)'{-d,--outputdir}'[directory to store files]:file:_files' \
|
'(-d|--outputdir)'{-d,--outputdir}'[directory to store files]:file:_files' \
|
||||||
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
|
'(-u|--targetusername)'{-u,--targetusername}'[username or alias for the target org; overrides default target org]' \
|
||||||
|
@ -28,5 +28,5 @@ http://sprunge.us/XxjnKz
|
|||||||
- Sprunge accepts piped data, stdin redirection, text strings as input or filenames.
|
- Sprunge accepts piped data, stdin redirection, text strings as input or filenames.
|
||||||
Only one of these can be used at a time.
|
Only one of these can be used at a time.
|
||||||
- Argument precedence goes as follows: stdin > piped input > text strings.
|
- Argument precedence goes as follows: stdin > piped input > text strings.
|
||||||
- If a filename is mispelled or doesn't have the necessary path description, it will NOT
|
- If a filename is misspelled or doesn't have the necessary path description, it will NOT
|
||||||
generate an error, but instead treat it as a text string.
|
generate an error, but instead treat it as a text string.
|
||||||
|
@ -109,27 +109,27 @@ _supervisorctl_maintail() {
|
|||||||
_supervisorctl_start() {
|
_supervisorctl_start() {
|
||||||
# TODO: add 'all'
|
# TODO: add 'all'
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'*::supvervisor process:_get_supervisor_procs'
|
'*::supervisor process:_get_supervisor_procs'
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_supervisorctl_restart] )) ||
|
(( $+functions[_supervisorctl_restart] )) ||
|
||||||
_supervisorctl_restart() {
|
_supervisorctl_restart() {
|
||||||
# TODO: add 'all'
|
# TODO: add 'all'
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'*::supvervisor process:_get_supervisor_procs'
|
'*::supervisor process:_get_supervisor_procs'
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_supervisorctl_status] )) ||
|
(( $+functions[_supervisorctl_status] )) ||
|
||||||
_supervisorctl_status() {
|
_supervisorctl_status() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'*::supvervisor process:_get_supervisor_procs'
|
'*::supervisor process:_get_supervisor_procs'
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_supervisorctl_stop] )) ||
|
(( $+functions[_supervisorctl_stop] )) ||
|
||||||
_supervisorctl_stop() {
|
_supervisorctl_stop() {
|
||||||
# TODO: add 'all'
|
# TODO: add 'all'
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'*::supvervisor process:_get_supervisor_procs'
|
'*::supervisor process:_get_supervisor_procs'
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_supervisorctl_tail] )) ||
|
(( $+functions[_supervisorctl_tail] )) ||
|
||||||
@ -137,7 +137,7 @@ _supervisorctl_tail() {
|
|||||||
# TODO: add 'stderr'
|
# TODO: add 'stderr'
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'-f[Continuous tail of named process stdout Ctrl-C to exit.]' \
|
'-f[Continuous tail of named process stdout Ctrl-C to exit.]' \
|
||||||
'*::supvervisor process:_get_supervisor_procs'
|
'*::supervisor process:_get_supervisor_procs'
|
||||||
}
|
}
|
||||||
|
|
||||||
_supervisorctl "$@"
|
_supervisorctl "$@"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# DECLARION: This plugin was created by hhatto. What I did is just making a portal from https://bitbucket.org/hhatto/zshcompfunc4supervisor.
|
# DECLARATION: This plugin was created by hhatto. What I did is just making a portal from https://bitbucket.org/hhatto/zshcompfunc4supervisor.
|
||||||
|
|
||||||
alias sup='sudo supervisorctl'
|
alias sup='sudo supervisorctl'
|
||||||
alias supad='sudo supervisorctl add'
|
alias supad='sudo supervisorctl add'
|
||||||
|
@ -62,7 +62,7 @@ plugins=(... suse)
|
|||||||
|
|
||||||
NOTE: `--no-refresh` is passed to zypper for speeding up the calls and avoid errors due to lack
|
NOTE: `--no-refresh` is passed to zypper for speeding up the calls and avoid errors due to lack
|
||||||
of root privileges. If you need to refresh the repositories, call `sudo zypper ref` (`zref` alias)
|
of root privileges. If you need to refresh the repositories, call `sudo zypper ref` (`zref` alias)
|
||||||
before runing these aliases.
|
before running these aliases.
|
||||||
|
|
||||||
Related: [#9798](https://github.com/ohmyzsh/ohmyzsh/pull/9798).
|
Related: [#9798](https://github.com/ohmyzsh/ohmyzsh/pull/9798).
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ plugins=(... symfony2)
|
|||||||
| `sfsr` | sf server:run | Run the dev server |
|
| `sfsr` | sf server:run | Run the dev server |
|
||||||
| `sfcw` | sf cache:warmup | Use the Bundles warmer |
|
| `sfcw` | sf cache:warmup | Use the Bundles warmer |
|
||||||
| `sfroute` | sf debug:router | Show the different routes |
|
| `sfroute` | sf debug:router | Show the different routes |
|
||||||
| `sfcontainer` | sf debug:contaner | List the different services |
|
| `sfcontainer` | sf debug:container | List the different services |
|
||||||
| `sfgb` | sf generate:bundle | Generate a bundle |
|
| `sfgb` | sf generate:bundle | Generate a bundle |
|
||||||
| `sfgc` | sf generate:controller | Generate a controller |
|
| `sfgc` | sf generate:controller | Generate a controller |
|
||||||
| `sfgcom` | sf generate:command | Generate a command |
|
| `sfgcom` | sf generate:command | Generate a command |
|
||||||
|
@ -27,7 +27,7 @@ alias mkdir='mkdir -pv'
|
|||||||
# get top process eating memory
|
# get top process eating memory
|
||||||
alias psmem='ps -e -orss=,args= | sort -b -k1 -nr'
|
alias psmem='ps -e -orss=,args= | sort -b -k1 -nr'
|
||||||
alias psmem10='ps -e -orss=,args= | sort -b -k1 -nr | head -n 10'
|
alias psmem10='ps -e -orss=,args= | sort -b -k1 -nr | head -n 10'
|
||||||
# get top process eating cpu if not work try excute : export LC_ALL='C'
|
# get top process eating cpu if not work try execute : export LC_ALL='C'
|
||||||
alias pscpu='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr'
|
alias pscpu='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr'
|
||||||
alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -n 10'
|
alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -n 10'
|
||||||
# top10 of the history
|
# top10 of the history
|
||||||
@ -105,7 +105,7 @@ visitpage20() {
|
|||||||
# top100 of Page lists the most time-consuming (more than 60 seconds) as well as the corresponding page number of occurrences
|
# top100 of Page lists the most time-consuming (more than 60 seconds) as well as the corresponding page number of occurrences
|
||||||
consume100() {
|
consume100() {
|
||||||
awk '($NF > 60 && $7~/\.php/){print $7}' "$(retlog)" |sort -n|uniq -c|sort -nr|head -n 100
|
awk '($NF > 60 && $7~/\.php/){print $7}' "$(retlog)" |sort -n|uniq -c|sort -nr|head -n 100
|
||||||
# if django website or other webiste make by no suffix language
|
# if django website or other website make by no suffix language
|
||||||
# awk '{print $7}' "$(retlog)" |sort -n|uniq -c|sort -nr|head -n 100
|
# awk '{print $7}' "$(retlog)" |sort -n|uniq -c|sort -nr|head -n 100
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ local -a _1st_arguments
|
|||||||
_1st_arguments=(
|
_1st_arguments=(
|
||||||
'create:create a Termfile in directory'
|
'create:create a Termfile in directory'
|
||||||
'delete:delete terminitor script'
|
'delete:delete terminitor script'
|
||||||
'edit:open termitor script'
|
'edit:open terminitor script'
|
||||||
'fetch:clone the designated repo and run setup'
|
'fetch:clone the designated repo and run setup'
|
||||||
'help:Describe available tasks or one specific task'
|
'help:Describe available tasks or one specific task'
|
||||||
'init:create initial root terminitor folder'
|
'init:create initial root terminitor folder'
|
||||||
|
@ -19,7 +19,7 @@ Commands that use `$APT` will use `apt` if installed or defer to `apt-get` other
|
|||||||
| acp | `apt-cache policy` | Display the package source priorities |
|
| acp | `apt-cache policy` | Display the package source priorities |
|
||||||
| afs | `apt-file search --regexp` | Perform a regular expression apt-file search |
|
| afs | `apt-file search --regexp` | Perform a regular expression apt-file search |
|
||||||
| afu | `sudo apt-file update` | Generates or updates the apt-file package database |
|
| afu | `sudo apt-file update` | Generates or updates the apt-file package database |
|
||||||
| aga | `sudo $APT autoclean` | Clears out the local reposityory of retrieved package files that can no longer be downloaded |
|
| aga | `sudo $APT autoclean` | Clears out the local repository of retrieved package files that can no longer be downloaded |
|
||||||
| agb | `sudo $APT build-dep <source_pkg>` | Installs/Removes packages to satisfy the dependencies of a specified build pkg |
|
| agb | `sudo $APT build-dep <source_pkg>` | Installs/Removes packages to satisfy the dependencies of a specified build pkg |
|
||||||
| agc | `sudo $APT clean` | Clears out the local repository of retrieved package files leaving everything from the lock files |
|
| agc | `sudo $APT clean` | Clears out the local repository of retrieved package files leaving everything from the lock files |
|
||||||
| agd | `sudo $APT dselect-upgrade` | Follows dselect choices for package installation |
|
| agd | `sudo $APT dselect-upgrade` | Follows dselect choices for package installation |
|
||||||
|
@ -53,7 +53,7 @@ mount_tune_args=(
|
|||||||
typeset -a mount_args
|
typeset -a mount_args
|
||||||
mount_args=(
|
mount_args=(
|
||||||
$mount_tune_args
|
$mount_tune_args
|
||||||
'(-path)-path=-[Mount point for the logical backend. This defauls to the type of the mount.]:path:'
|
'(-path)-path=-[Mount point for the logical backend. This defaults to the type of the mount.]:path:'
|
||||||
'(-description)-description=-[Human-friendly description of the purpose for the mount. This shows up in the mounts command.]:description:'
|
'(-description)-description=-[Human-friendly description of the purpose for the mount. This shows up in the mounts command.]:description:'
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ _vault_mounts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_vault_mount() {
|
_vault_mount() {
|
||||||
# to find out how many types of backens are there
|
# to find out how many types of backends are there
|
||||||
_arguments : \
|
_arguments : \
|
||||||
${general_args[@]} \
|
${general_args[@]} \
|
||||||
${mount_args[@]} \
|
${mount_args[@]} \
|
||||||
|
@ -157,7 +157,7 @@ _yarn() {
|
|||||||
'(--emoji)--no-emoji[disable emoji in output]' \
|
'(--emoji)--no-emoji[disable emoji in output]' \
|
||||||
'(--disable-pnp)'{--enable-pnp,--pnp}"[enable the Plug'n'Play installation]" \
|
'(--disable-pnp)'{--enable-pnp,--pnp}"[enable the Plug'n'Play installation]" \
|
||||||
'--flat[only allow one version of a package]' \
|
'--flat[only allow one version of a package]' \
|
||||||
'--focus[Focus on a single workspace by installing remote copies of its sibiling workspaces]' \
|
'--focus[Focus on a single workspace by installing remote copies of its sibling workspaces]' \
|
||||||
'--force[install and build packages even if they were built before, overwrite lockfile]' \
|
'--force[install and build packages even if they were built before, overwrite lockfile]' \
|
||||||
"--frozen-lockfile[don't generate a lockfile and fail if an update is needed]" \
|
"--frozen-lockfile[don't generate a lockfile and fail if an update is needed]" \
|
||||||
'--global-folder=[modules folder]:folder:_files -/' \
|
'--global-folder=[modules folder]:folder:_files -/' \
|
||||||
|
@ -7,7 +7,7 @@ alias ygl="yum grouplist" # list package groups
|
|||||||
alias yli="yum list installed" # print all installed packages
|
alias yli="yum list installed" # print all installed packages
|
||||||
alias ymc="yum makecache" # rebuilds the yum package list
|
alias ymc="yum makecache" # rebuilds the yum package list
|
||||||
|
|
||||||
alias yu="sudo yum update" # upgrate packages
|
alias yu="sudo yum update" # upgrade packages
|
||||||
alias yi="sudo yum install" # install package
|
alias yi="sudo yum install" # install package
|
||||||
alias ygi="sudo yum groupinstall" # install package group
|
alias ygi="sudo yum groupinstall" # install package group
|
||||||
alias yr="sudo yum remove" # remove package
|
alias yr="sudo yum remove" # remove package
|
||||||
|
@ -9,7 +9,7 @@ DALLAS_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
|
|||||||
DALLAS_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}\$(parse_git_dirty)"
|
DALLAS_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}\$(parse_git_dirty)"
|
||||||
# Grab the current username: dallas
|
# Grab the current username: dallas
|
||||||
DALLAS_CURRENT_USER_="%{$fg[red]%}%n%{$reset_color%}"
|
DALLAS_CURRENT_USER_="%{$fg[red]%}%n%{$reset_color%}"
|
||||||
# Use a % for normal users and a # for privelaged (root) users.
|
# Use a % for normal users and a # for privileged (root) users.
|
||||||
DALLAS_PROMPT_CHAR_="%{$fg[white]%}%(!.#.%%)%{$reset_color%}"
|
DALLAS_PROMPT_CHAR_="%{$fg[white]%}%(!.#.%%)%{$reset_color%}"
|
||||||
# For the git prompt, use a white @ and blue text for the branch name
|
# For the git prompt, use a white @ and blue text for the branch name
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}@%{$fg[blue]%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}@%{$fg[blue]%}"
|
||||||
|
@ -39,7 +39,7 @@ elif [[ -r /etc/debian_chroot ]]; then
|
|||||||
# prefix prompt in case of chroot
|
# prefix prompt in case of chroot
|
||||||
ZSH_ESSEMBEH_PREFIX="%{$fg[yellow]%}[chroot:$(cat /etc/debian_chroot)]%{$reset_color%} "
|
ZSH_ESSEMBEH_PREFIX="%{$fg[yellow]%}[chroot:$(cat /etc/debian_chroot)]%{$reset_color%} "
|
||||||
elif [[ -r /.dockerenv ]]; then
|
elif [[ -r /.dockerenv ]]; then
|
||||||
# also prefix prompt inside a docker contrainer
|
# also prefix prompt inside a docker container
|
||||||
ZSH_ESSEMBEH_PREFIX="%{$fg[yellow]%}[docker]%{$reset_color%} "
|
ZSH_ESSEMBEH_PREFIX="%{$fg[yellow]%}[docker]%{$reset_color%} "
|
||||||
fi
|
fi
|
||||||
if [[ $UID = 0 ]]; then
|
if [[ $UID = 0 ]]; then
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# * Only shows the path on the left prompt by default.
|
# * Only shows the path on the left prompt by default.
|
||||||
# * Crops the path to a defined length and only shows the path relative to
|
# * Crops the path to a defined length and only shows the path relative to
|
||||||
# the current VCS repository root.
|
# the current VCS repository root.
|
||||||
# * Wears a different color wether the last command succeeded/failed.
|
# * Wears a different color whether the last command succeeded/failed.
|
||||||
# * Shows user@hostname if connected through SSH.
|
# * Shows user@hostname if connected through SSH.
|
||||||
# * Shows if logged in as root or not.
|
# * Shows if logged in as root or not.
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user