text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: plugins/react-native/react-native.plugin.zsh # React Native alias rn='react-native' alias rns='react-native start' alias rnlink='react-native link' alias rnland='react-native log-android' alias rnlios='react-native log-ios' alias rnand='react-native run-android' alias rnios='react-native run-ios' # iPhone al...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/react-native/react-native.plugin.zsh", "license": "mit", "size": 4312}
### File: plugins/rebar/_rebar #compdef rebar local curcontext=$curcontext state ret=1 typeset -ga _rebar_global_opts _rebar_global_opts=( '(--help -h)'{--help,-h}'[Show the program options]' '(--commands -c)'{--commands,-c}'[Show available commands]' '(--version -V)'{--version,-V}'[Show version information]' ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/rebar/_rebar", "license": "mit", "size": 3055}
### File: plugins/repo/repo.plugin.zsh alias r='repo' alias rra='repo rebase --auto-stash' alias rs='repo sync' alias rsrra='repo sync ; repo rebase --auto-stash' alias ru='repo upload' alias rst='repo status' alias rsto='repo status -o' alias rfa='repo forall -c' alias rfap='repo forall -p -c' alias rinf='repo info'
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/repo/repo.plugin.zsh", "license": "mit", "size": 280}
### File: plugins/ripgrep/_ripgrep #compdef rg ## # zsh completion function for ripgrep # # Run ci/test-complete after building to ensure that the options supported by # this function stay in synch with the `rg` binary. # # For convenience, a completion reference guide is included at the bottom of # this file. # # Ori...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/ripgrep/_ripgrep", "license": "mit", "size": 29096}
### File: plugins/rsync/rsync.plugin.zsh alias rsync-copy="rsync -avz --progress -h" alias rsync-move="rsync -avz --progress -h --remove-source-files" alias rsync-update="rsync -avzu --progress -h" alias rsync-synchronize="rsync -avzu --delete --progress -h"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/rsync/rsync.plugin.zsh", "license": "mit", "size": 218}
### File: plugins/ruby/ruby.plugin.zsh # Run sudo gem on the system ruby, not the active ruby alias sgem='sudo gem' # Find ruby file alias rfind='find . -name "*.rb" | xargs grep -n' # Shorthand Ruby alias rb="ruby" # Gem Command Shorthands alias gein="gem install" alias geun="gem uninstall" alias geli="gem list" al...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/ruby/ruby.plugin.zsh", "license": "mit", "size": 649}
### File: plugins/rust/rust.plugin.zsh if ! (( $+commands[rustup] && $+commands[cargo] )); then return fi # If the completion file doesn't exist yet, we need to autoload it and # bind it to `cargo`. Otherwise, compinit will have already done that if [[ ! -f "$ZSH_CACHE_DIR/completions/_cargo" ]]; then autoload -Uz...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/rust/rust.plugin.zsh", "license": "mit", "size": 892}
### File: plugins/rvm/rvm.plugin.zsh # Completion fpath+=("${rvm_path}/scripts/zsh/Completion") typeset -g -A _comps autoload -Uz _rvm _comps[rvm]=_rvm # Aliases alias rubies='rvm list rubies' alias rvms='rvm gemset' alias gemsets='rvms list' # rb{version} utilities # From `rvm list known` typeset -A rubies rubies=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/rvm/rvm.plugin.zsh", "license": "mit", "size": 1254}
### File: plugins/safe-paste/safe-paste.plugin.zsh # A good summary of the zsh 5.1 Bracketed Paste Mode changes is at: # https://archive.zhimingwang.org/blog/2015-09-21-zsh-51-and-bracketed-paste.html # zsh 5.1 (September 2015) introduced built-in support for Bracketed Paste Mode # https://github.com/zsh-users/zsh/blo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/safe-paste/safe-paste.plugin.zsh", "license": "mit", "size": 4044}
### File: plugins/sbt/sbt.plugin.zsh # ------------------------------------------------------------------------------ # FILE: sbt.plugin.zsh # DESCRIPTION: oh-my-zsh plugin file. # AUTHOR: Mirko Caserta (mirko.caserta@gmail.com) # VERSION: 1.0.2 # --------------------------------------------...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/sbt/sbt.plugin.zsh", "license": "mit", "size": 786}
### File: plugins/scd/scd #!/bin/zsh -f emulate -L zsh local RUNNING_AS_COMMAND= local EXIT=return if [[ $(whence -w $0) == *:' 'command ]]; then RUNNING_AS_COMMAND=1 EXIT=exit fi local DOC='scd -- smart change to a recently used directory usage: scd [options] [pattern1 pattern2 ...] Go to a directory path t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/scd/scd", "license": "mit", "size": 16166}
### File: plugins/scd/scd.plugin.zsh ## The scd script should autoload as a shell function. autoload -Uz scd ## If the scd function exists, define a change-directory-hook function ## to record visited directories in the scd index. if [[ ${+functions[scd]} == 1 ]]; then chpwd_scd() { scd --add $PWD } autoload ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/scd/scd.plugin.zsh", "license": "mit", "size": 455}
### File: plugins/screen/screen.plugin.zsh # if using GNU screen, let the zsh tell screen what the title and hardstatus # of the tab window should be. if [[ "$TERM" == screen* ]]; then if [[ $_GET_PATH == '' ]]; then _GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USERNAME/~/"' fi if [[ $_GET_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/screen/screen.plugin.zsh", "license": "mit", "size": 2089}
### File: plugins/scw/_scw #compdef scw # # zsh completion for scw (https://www.scaleway.com) # # Inspired by https://github.com/felixr/docker-zsh-completion __scw_get_servers() { local expl declare -a servers servers=(${(f)"$(_call_program commands scw _completion servers-names)"}) _describe -t server...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/scw/_scw", "license": "mit", "size": 9550}
### File: plugins/sdk/sdk.plugin.zsh #!/usr/bin/env zsh ### SDKMAN Autocomplete for Oh My Zsh _sdk() { case "${CURRENT}" in 2) compadd -X $'Commands:\n' -- "${${(Mk)functions[@]:#__sdk_*}[@]#__sdk_}" compadd -n rm ;; 3) case "${words[2]}" in l|ls|list|i|install) compadd -X $'Candidates:\n' -- "${SDKMA...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/sdk/sdk.plugin.zsh", "license": "mit", "size": 1579}
### File: plugins/sfffe/sfffe.plugin.zsh # ------------------------------------------------------------------------------ # FILE: sfffe.plugin.zsh # DESCRIPTION: search file for FE # AUTHOR: yleo77 (ylep77@gmail.com) # VERSION: 0.1 # REQUIRE: ack # ------------------------------------...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/sfffe/sfffe.plugin.zsh", "license": "mit", "size": 591}
### File: plugins/shell-proxy/proxy.py #!/usr/bin/env python3 import os import sys from subprocess import check_output, list2cmdline cwd = os.path.dirname(__file__) ssh_agent = os.path.join(cwd, "ssh-agent.py") proxy_env = "SHELLPROXY_URL" proxy_config = os.environ.get("SHELLPROXY_CONFIG") or os.path.expandvars("$HOME...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/shell-proxy/proxy.py", "license": "mit", "size": 2132}
### File: plugins/shell-proxy/shell-proxy.plugin.zsh #!/usr/bin/bash # shellcheck disable=SC1090,SC2154 # Handle $0 according to the standard: # https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html 0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}" 0="${${(M)0:#/*}:-$PWD/$0}" eval ' proxy()...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/shell-proxy/shell-proxy.plugin.zsh", "license": "mit", "size": 1368}
### File: plugins/shell-proxy/ssh-agent.py #!/usr/bin/env python3 import os import subprocess import sys ssh_proxy = os.path.join(os.path.dirname(__file__), "ssh-proxy.py") argv = [ os.environ.get("__SSH_PROGRAM_NAME__", "ssh"), "-o", "ProxyCommand={} %h %p".format(ssh_proxy), "-o", "Compression=y...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/shell-proxy/ssh-agent.py", "license": "mit", "size": 338}
### File: plugins/shell-proxy/ssh-proxy.py #!/usr/bin/env python3 import os import subprocess import sys from urllib.parse import urlparse proxy = next(os.environ[_] for _ in ("HTTP_PROXY", "HTTPS_PROXY") if _ in os.environ) parsed = urlparse(proxy) proxy_protocols = { "http": "connect", "https": "connect", ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/shell-proxy/ssh-proxy.py", "license": "mit", "size": 977}
### File: plugins/shrink-path/shrink-path.plugin.zsh # Shrink directory paths, e.g. /home/me/foo/bar/quux -> ~/f/b/quux. # # For a fish-style working directory in your command prompt, add the following # to your theme or zshrc: # # setopt prompt_subst # PS1='%n@%m $(shrink_path -f)>' # # The following options are a...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/shrink-path/shrink-path.plugin.zsh", "license": "mit", "size": 7582}
### File: plugins/sigstore/sigstore.plugin.zsh function install_autocompletion { if (( ! $+commands[$1] )); then return fi # If the completion file doesn't exist yet, we need to autoload it and # bind it to `$1` (cosign, sget, rekor-cli). Otherwise, compinit will # have already done that if [[ ! -f "$Z...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/sigstore/sigstore.plugin.zsh", "license": "mit", "size": 571}
### File: plugins/singlechar/singlechar.plugin.zsh ########################### # Settings # These can be overwritten any time. # If they are not set yet, they will be # overwritten with their default values default GREP grep default ROOT sudo default WGET wget default CURL curl env_default PAGER less #############...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/singlechar/singlechar.plugin.zsh", "license": "mit", "size": 2065}
### File: plugins/skaffold/skaffold.plugin.zsh # Autocompletion for skaffold if (( ! $+commands[skaffold] )); then return fi # If the completion file doesn't exist yet, we need to autoload it and # bind it to `skaffold`. Otherwise, compinit will have already done that. if [[ ! -f "$ZSH_CACHE_DIR/completions/_skaffol...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/skaffold/skaffold.plugin.zsh", "license": "mit", "size": 435}
### File: plugins/sprunge/sprunge.plugin.zsh sprunge() { if [[ "$1" = --help ]]; then fmt -s >&2 << EOF DESCRIPTION Upload data and fetch URL from the pastebin http://sprunge.us USAGE $0 filename.txt $0 text string $0 < filename.txt piped_data | $0 NOTES Input Methods: $0 can accept piped data, S...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/sprunge/sprunge.plugin.zsh", "license": "mit", "size": 1998}
### File: plugins/ssh-agent/ssh-agent.plugin.zsh # Get the filename to store/lookup the environment from ssh_env_cache="$HOME/.ssh/environment-$SHORT_HOST" function _start_agent() { # Check if ssh-agent is already running if [[ -f "$ssh_env_cache" ]]; then . "$ssh_env_cache" > /dev/null # Test if $SSH_AUT...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/ssh-agent/ssh-agent.plugin.zsh", "license": "mit", "size": 3323}
### File: plugins/stack/stack.plugin.zsh (( $+commands[stack] )) || return autoload -U +X bashcompinit && bashcompinit source <(stack --bash-completion-script stack)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/stack/stack.plugin.zsh", "license": "mit", "size": 126}
### File: plugins/sublime-merge/sublime-merge.plugin.zsh # Sublime Merge Aliases () { if [[ "$OSTYPE" == linux* ]]; then local _sublime_linux_paths _sublime_linux_paths=( "$HOME/bin/sublime_merge" "/opt/sublime_merge/sublime_merge" "/usr/bin/sublime_merge" "/usr/local/bin/sublime_merge" "/usr/bin/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/sublime-merge/sublime-merge.plugin.zsh", "license": "mit", "size": 1472}
### File: plugins/sublime/sublime.plugin.zsh # Sublime Text aliases alias st=subl alias stt='subl .' # Define sst only if sudo exists (( $+commands[sudo] )) && alias sst='sudo subl' alias stp=find_project alias stn=create_project # Search for the Sublime Text command if not found (( $+commands[subl] )) || { decl...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/sublime/sublime.plugin.zsh", "license": "mit", "size": 3884}
### File: plugins/sudo/sudo.plugin.zsh # ------------------------------------------------------------------------------ # Description # ----------- # # sudo or sudo -e (replacement for sudoedit) will be inserted before the command # # ------------------------------------------------------------------------------ # Auth...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/sudo/sudo.plugin.zsh", "license": "mit", "size": 3776}
### File: plugins/supervisor/supervisor.plugin.zsh # 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 supad='sudo supervisorctl add' alias supa='sudo supervisorctl avail' alias suprl='sudo s...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/supervisor/supervisor.plugin.zsh", "license": "mit", "size": 603}
### File: plugins/suse/suse.plugin.zsh #Main commands alias z='sudo zypper' alias zh='zypper -h' alias zhse='zypper -h se' alias zlicenses='zypper licenses' alias zps='sudo zypper ps' alias zshell='sudo zypper shell' alias zsource-download='sudo zypper source-download' alias ztos='zypper tos' alias zvcmp='zypper vcmp' ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/suse/suse.plugin.zsh", "license": "mit", "size": 1554}
### File: plugins/svcat/svcat.plugin.zsh # Autocompletion for svcat. # if [ $commands[svcat] ]; then source <(svcat completion zsh) fi
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/svcat/svcat.plugin.zsh", "license": "mit", "size": 97}
### File: plugins/svn-fast-info/svn-fast-info.plugin.zsh function svn_prompt_info() { local info info=$(LANG= svn info 2>&1) || return 1 # capture stdout and stderr local repo_need_upgrade=$(svn_repo_need_upgrade $info) if [[ -n $repo_need_upgrade ]]; then printf '%s%s%s%s%s%s%s\n' \ "$ZSH_PROMPT_BAS...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/svn-fast-info/svn-fast-info.plugin.zsh", "license": "mit", "size": 2505}
### File: plugins/svn/svn.plugin.zsh svn_prompt_info() { local info display info="$(LANG= svn info 2>/dev/null)" || return 1 if [[ "$SVN_SHOW_BRANCH" = true ]]; then display="$(svn_get_branch_name "$info")" else display="$(svn_get_repo_name "$info")" fi printf '%s%s%s%s%s%s%s%s%s%s' \ "$ZSH_PR...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/svn/svn.plugin.zsh", "license": "mit", "size": 2279}
### File: plugins/swiftpm/swiftpm.plugin.zsh # Some aliases to make your life with the Swift Package Manager faster ✌️ alias spi='swift package init' alias spf='swift package fetch' alias spu='swift package update' alias spx='swift package generate-xcodeproj' alias sps='swift package show-dependencies' alias spd='swif...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/swiftpm/swiftpm.plugin.zsh", "license": "mit", "size": 303}
### File: plugins/symfony/symfony.plugin.zsh # symfony basic command completion _symfony_get_command_list () { php symfony | sed "1,/Available tasks/d" | awk 'BEGIN { cat=null; } /^[A-Za-z]+$/ { cat = $1; } /^ :[a-z]+/ { print cat $1; }' } _symfony () { if [ -f symfony ]; then compadd `_symfony_get_command...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/symfony/symfony.plugin.zsh", "license": "mit", "size": 315}
### File: plugins/symfony2/symfony2.plugin.zsh # Symfony2 basic command completion _symfony_console () { echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)" } _symfony2_get_command_list () { `_symfony_console` --no-ansi --no-debug | sed "1,/Available commands/d" | awk '/^ ?[^ ]+ / {...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/symfony2/symfony2.plugin.zsh", "license": "mit", "size": 949}
### File: plugins/systemadmin/systemadmin.plugin.zsh # ------------------------------------------------------------------------------ # Description # ----------- # # This is one for the system administrator, operation and maintenance. # # ------------------------------------------------------------------------------ # ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/systemadmin/systemadmin.plugin.zsh", "license": "mit", "size": 4952}
### File: plugins/systemd/systemd.plugin.zsh # systemctl aliases user_commands=( cat get-default help is-active is-enabled is-failed is-system-running list-dependencies list-jobs list-sockets list-timers list-unit-files list-units show show-environment status ) sudo_commands=( add-req...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/systemd/systemd.plugin.zsh", "license": "mit", "size": 1976}
### File: plugins/taskwarrior/taskwarrior.plugin.zsh zstyle ':completion:*:*:task:*' verbose yes zstyle ':completion:*:*:task:*:descriptions' format '%U%B%d%b%u' zstyle ':completion:*:*:task:*' group-name '' alias t=task compdef _task t=task
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/taskwarrior/taskwarrior.plugin.zsh", "license": "mit", "size": 191}
### File: plugins/term_tab/term_tab.plugin.zsh # Copyright (C) 2014 Julian Vetter <death.jester@web.de> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (a...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/term_tab/term_tab.plugin.zsh", "license": "mit", "size": 1480}
### File: plugins/terraform/terraform.plugin.zsh function tf_prompt_info() { # dont show 'default' workspace in home dir [[ "$PWD" != ~ ]] || return # check if in terraform dir and file exists [[ -d .terraform && -r .terraform/environment ]] || return local workspace="$(< .terraform/environment)" echo "${Z...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/terraform/terraform.plugin.zsh", "license": "mit", "size": 604}
### File: plugins/textastic/textastic.plugin.zsh # # If the tt command is called without an argument, launch Textastic # If tt is passed a directory, cd to it and open it in Textastic # If tt is passed a file, open it in Textastic # function tt() { if [[ -z "$1" ]] then open -a "textastic.app" else ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/textastic/textastic.plugin.zsh", "license": "mit", "size": 386}
### File: plugins/textmate/textmate.plugin.zsh # If the tm command is called without an argument, open TextMate in the current directory # If tm is passed a directory, cd to it and open it in TextMate # If tm is passed anything else (i.e., a list of files and/or options), pass them all along # This allows easy openi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/textmate/textmate.plugin.zsh", "license": "mit", "size": 408}
### File: plugins/thefuck/thefuck.plugin.zsh if [[ -z $commands[thefuck] ]]; then echo 'thefuck is not installed, you should "pip install thefuck" or "brew install thefuck" first.' echo 'See https://github.com/nvbn/thefuck#installation' return 1 fi # Register alias [[ ! -a $ZSH_CACHE_DIR/thefuck ]] && thef...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/thefuck/thefuck.plugin.zsh", "license": "mit", "size": 737}
### File: plugins/themes/themes.plugin.zsh function theme { : ${1:=random} # Use random theme if none provided if [[ -f "$ZSH_CUSTOM/$1.zsh-theme" ]]; then source "$ZSH_CUSTOM/$1.zsh-theme" elif [[ -f "$ZSH_CUSTOM/themes/$1.zsh-theme" ]]; then source "$ZSH_CUSTOM/themes/$1.zsh-theme" el...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/themes/themes.plugin.zsh", "license": "mit", "size": 1183}
### File: plugins/tig/tig.plugin.zsh alias tis='tig status' alias til='tig log' alias tib='tig blame -C'
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/tig/tig.plugin.zsh", "license": "mit", "size": 68}
### File: plugins/timer/timer.plugin.zsh zmodload zsh/datetime __timer_current_time() { zmodload zsh/datetime echo $EPOCHREALTIME } __timer_format_duration() { local mins=$(printf '%.0f' $(($1 / 60))) local secs=$(printf "%.${TIMER_PRECISION:-1}f" $(($1 - 60 * mins))) local duration_str=$(echo "${mins}m${se...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/timer/timer.plugin.zsh", "license": "mit", "size": 1047}
### File: plugins/tmux/tmux.plugin.zsh if ! (( $+commands[tmux] )); then print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin." >&2 return 1 fi # CONFIGURATION VARIABLES # Automatically start tmux : ${ZSH_TMUX_AUTOSTART:=false} # Only autostart once. If set to false, tmux will attem...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/tmux/tmux.plugin.zsh", "license": "mit", "size": 3829}
### File: plugins/tmuxinator/tmuxinator.plugin.zsh # aliases alias txs='tmuxinator start' alias txo='tmuxinator open' alias txn='tmuxinator new' alias txl='tmuxinator list'
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/tmuxinator/tmuxinator.plugin.zsh", "license": "mit", "size": 122}
### File: plugins/toolbox/toolbox.plugin.zsh function toolbox_prompt_info() { [[ -f /run/.toolboxenv ]] && echo "β¬’" } alias tbe="toolbox enter" alias tbr="toolbox run"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/toolbox/toolbox.plugin.zsh", "license": "mit", "size": 128}
### File: plugins/torrent/torrent.plugin.zsh # # Algorithm borrowed from http://wiki.rtorrent.org/MagnetUri and adapted to work with zsh. # function magnet_to_torrent() { [[ "$1" =~ xt=urn:btih:([^\&/]+) ]] || return 1 hashh=${match[1]} if [[ "$1" =~ dn=([^\&/]+) ]];then filename=${match[1]} else filename=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/torrent/torrent.plugin.zsh", "license": "mit", "size": 344}
### File: plugins/transfer/transfer.plugin.zsh # Author: # Remco Verhoef <remco@dutchcoders.io> # https://gist.github.com/nl5887/a511f172d3fb3cd0e42d # Modified to use tar command instead of zip # transfer() { # check arguments if [[ $# -eq 0 ]]; then cat <<EOF Error: no arguments specified. Usage: transf...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/transfer/transfer.plugin.zsh", "license": "mit", "size": 2443}
### File: plugins/ubuntu/ubuntu.plugin.zsh (( $+commands[apt] )) && APT=apt || APT=apt-get alias acse='apt-cache search' alias afs='apt-file search --regexp' # These are apt/apt-get only alias ags="$APT source" alias acp='apt-cache policy' #List all installed packages alias agli='apt list --installed' # List avai...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/ubuntu/ubuntu.plugin.zsh", "license": "mit", "size": 3736}
### File: plugins/universalarchive/universalarchive.plugin.zsh function ua() { local usage=\ "Archive files and directories using a given compression algorithm. Usage: $0 <format> <files> Example: $0 tbz PKGBUILD Supported archive formats are: 7z, bz2, gz, lzma, lzo, rar, tar, tbz (tar.bz2), tgz (tar.gz), tlz (ta...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/universalarchive/universalarchive.plugin.zsh", "license": "mit", "size": 2264}
### File: plugins/urltools/urltools.plugin.zsh # URL Tools # Adds handy command line aliases useful for dealing with URLs # # Taken from: # https://ruslanspivak.com/2010/06/02/urlencode-and-urldecode-from-a-command-line/ if [[ $(whence $URLTOOLS_METHOD) = "" ]]; then URLTOOLS_METHOD="" fi if [[ $(whence node) != ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/urltools/urltools.plugin.zsh", "license": "mit", "size": 2812}
### File: plugins/vagrant-prompt/vagrant-prompt.plugin.zsh # vim:ft=zsh ts=2 sw=2 sts=2 # # To display Vagrant infos on your prompt add the vagrant_prompt_info to the # $PROMPT variable in your theme. Example: # # PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(vagrant_prompt_info)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/vagrant-prompt/vagrant-prompt.plugin.zsh", "license": "mit", "size": 1495}
### File: plugins/vagrant/vagrant.plugin.zsh alias vgi="vagrant init" alias vup="vagrant up" alias vd="vagrant destroy" alias vdf="vagrant destroy -f" alias vssh="vagrant ssh" alias vsshc="vagrant ssh-config" alias vrdp="vagrant rdp" alias vh="vagrant halt" alias vssp="vagrant suspend" alias vst="vagrant status" ali...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/vagrant/vagrant.plugin.zsh", "license": "mit", "size": 777}
### File: plugins/vi-mode/vi-mode.plugin.zsh # Control whether to force a redraw on each mode change. # # Resetting the prompt on every mode change can cause lag when switching modes. # This is especially true if the prompt does things like checking git status. # # Set to "true" to force the prompt to reset on each mod...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/vi-mode/vi-mode.plugin.zsh", "license": "mit", "size": 5477}
### File: plugins/vim-interaction/vim-interaction.plugin.zsh # # See README.md # # Derek Wyatt (derek@{myfirstnamemylastname}.org # function callvim { if [[ $# == 0 ]]; then cat <<EOH usage: callvim [-b cmd] [-a cmd] [-n name] [file ... fileN] -b cmd Run this command in GVIM before editing the first file...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/vim-interaction/vim-interaction.plugin.zsh", "license": "mit", "size": 1881}
### File: plugins/virtualenv/virtualenv.plugin.zsh function virtualenv_prompt_info(){ [[ -n ${VIRTUAL_ENV} ]] || return echo "${ZSH_THEME_VIRTUALENV_PREFIX=[}${VIRTUAL_ENV:t:gs/%/%%}${ZSH_THEME_VIRTUALENV_SUFFIX=]}" } # disables prompt mangling in virtual_env/bin/activate export VIRTUAL_ENV_DISABLE_PROMPT=1
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/virtualenv/virtualenv.plugin.zsh", "license": "mit", "size": 263}
### File: plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh function { # search in these locations for the init script: for virtualenvwrapper in $commands[virtualenvwrapper_lazy.sh] \ $commands[virtualenvwrapper.sh] \ /usr/share/virtualenvwrapper/virtualenvwrapper{_lazy,}.sh \ /usr/local/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh", "license": "mit", "size": 3511}
### File: plugins/volta/volta.plugin.zsh # COMPLETION FUNCTION if (( ! $+commands[volta] )); then return fi # If the completion file doesn't exist yet, we need to autoload it and # bind it to `deno`. Otherwise, compinit will have already done that. if [[ ! -f "$ZSH_CACHE_DIR/completions/_volta" ]]; then typeset -g...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/volta/volta.plugin.zsh", "license": "mit", "size": 403}
### File: plugins/vscode/vscode.plugin.zsh # VS Code (stable / insiders) / VSCodium zsh plugin # Authors: # https://github.com/MarsiBarsi (original author) # https://github.com/babakks # https://github.com/SteelShot # Verify if any manual user choice of VS Code exists first. if [[ -n "$VSCODE" ]] && ! which $VSC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/vscode/vscode.plugin.zsh", "license": "mit", "size": 1118}
### File: plugins/vundle/vundle.plugin.zsh function vundle-init () { if [ ! -d ~/.vim/bundle/Vundle.vim/ ] then mkdir -p ~/.vim/bundle/Vundle.vim/ fi if [ ! -d ~/.vim/bundle/Vundle.vim/.git ] && [ ! -f ~/.vim/bundle/Vundle.vim/.git ] then git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/b...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/vundle/vundle.plugin.zsh", "license": "mit", "size": 654}
### File: plugins/wakeonlan/wakeonlan.plugin.zsh function wake() { local config_file="$HOME/.wakeonlan/$1" if [[ ! -f "$config_file" ]]; then echo "ERROR: There is no configuration file at \"$config_file\"." return 1 fi if (( ! $+commands[wakeonlan] )); then echo "ERROR: Can't find \"wakeonlan\". ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/wakeonlan/wakeonlan.plugin.zsh", "license": "mit", "size": 352}
### File: plugins/wd/_wd.sh #compdef wd zstyle ':completion::complete:wd:*:descriptions' format '%B%d%b' zstyle ':completion::complete:wd:*:commands' group-name commands zstyle ':completion::complete:wd:*:warp_points' group-name warp_points zstyle ':completion::complete:wd::' list-grouped zmodload zsh/mapfile functi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/wd/_wd.sh", "license": "mit", "size": 2630}
### File: plugins/wd/wd.plugin.zsh #!/bin/zsh # WARP DIRECTORY # ============== # Jump to custom directories in terminal # because `cd` takes too long... # # @github.com/mfaerevaag/wd # Handle $0 according to the standard: # https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html 0="${${ZERO...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/wd/wd.plugin.zsh", "license": "mit", "size": 390}
### File: plugins/wd/wd.sh #!/bin/zsh # WARP DIRECTORY # ============== # Jump to custom directories in terminal # because `cd` takes too long... # # @github.com/mfaerevaag/wd # version readonly WD_VERSION=0.5.0 # colors readonly WD_BLUE="\033[96m" readonly WD_GREEN="\033[92m" readonly WD_YELLOW="\033[93m" readonly ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/wd/wd.sh", "license": "mit", "size": 12744}
### File: plugins/web-search/web-search.plugin.zsh # web_search from terminal function web_search() { emulate -L zsh # define search engine URLS typeset -A urls urls=( $ZSH_WEB_SEARCH_ENGINES google "https://www.google.com/search?q=" bing "https://www.bing.com/search?q=" br...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/web-search/web-search.plugin.zsh", "license": "mit", "size": 2836}
### File: plugins/wp-cli/wp-cli.plugin.zsh # WP-CLI # A command line interface for WordPress # https://wp-cli.org/ # Core alias wpcc='wp core config' alias wpcd='wp core download' alias wpci='wp core install' alias wpcii='wp core is-installed' alias wpcmc='wp core multisite-convert' alias wpcmi='wp core multisite-inst...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/wp-cli/wp-cli.plugin.zsh", "license": "mit", "size": 2983}
### File: plugins/xcode/xcode.plugin.zsh alias xcb='xcodebuild' alias xcdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*' alias xcp='xcode-select --print-path' alias xcsel='sudo xcode-select --switch' # original author: @subdigital # source: https://gist.github.com/subdigital/5420709 function xc { local xcode_file...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/xcode/xcode.plugin.zsh", "license": "mit", "size": 5860}
### File: plugins/yarn/_yarn #compdef yarn # ------------------------------------------------------------------------------ # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retai...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/yarn/_yarn", "license": "mit", "size": 17481}
### File: plugins/yarn/yarn.plugin.zsh if zstyle -T ':omz:plugins:yarn' global-path; then # Skip yarn call if default global bin dir exists [[ -d "$HOME/.yarn/bin" ]] && bindir="$HOME/.yarn/bin" || bindir="$(yarn global bin 2>/dev/null)" # Add yarn bin directory to $PATH if it exists and not already in $PATH [...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/yarn/yarn.plugin.zsh", "license": "mit", "size": 1305}
### File: plugins/yii/yii.plugin.zsh # Yii basic command completion _yii_get_command_list () { protected/yiic | awk '/^ - [a-z]+/ { print $2 }' } _yii () { if [ -f protected/yiic ]; then compadd `_yii_get_command_list` fi } compdef _yii protected/yiic compdef _yii yiic # Aliases alias yiic='protected/yiic'...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/yii/yii.plugin.zsh", "license": "mit", "size": 284}
### File: plugins/yii2/yii2.plugin.zsh # Yii2 command completion _yii2_format_command () { awk '/^- [a-z]+/ { sub(":", "", $2); print $2 }' } _yii2 () { if [ -f ./yii ]; then _arguments \ '1: :->command'\ '*: :->params' case $state in command) local -a commands local -a nam...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/yii2/yii2.plugin.zsh", "license": "mit", "size": 506}
### File: plugins/yum/yum.plugin.zsh ## Aliases alias ys="yum search" # search package alias yp="yum info" # show package info alias yl="yum list" # list packages alias ygl="yum grouplist" # list package groups alias yli="yum list ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/yum/yum.plugin.zsh", "license": "mit", "size": 864}
### File: plugins/z/_z #compdef zshz ${ZSHZ_CMD:-${_Z_CMD:-z}} # # Zsh-z - jump around with Zsh - A native Zsh version of z without awk, sort, # date, or sed # # https://github.com/agkozak/zsh-z # # Copyright (c) 2018-2022 Alexandros Kozak # # Permission is hereby granted, free of charge, to any person obtaining a copy...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/z/_z", "license": "mit", "size": 2647}
### File: plugins/z/z.plugin.zsh ################################################################################ # Zsh-z - jump around with Zsh - A native Zsh version of z without awk, sort, # date, or sed # # https://github.com/agkozak/zsh-z # # Copyright (c) 2018-2022 Alexandros Kozak # # Permission is hereby grante...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/z/z.plugin.zsh", "license": "mit", "size": 30170}
### File: plugins/zbell/zbell.plugin.zsh #!/usr/bin/env zsh # This script prints a bell character when a command finishes # if it has been running for longer than $zbell_duration seconds. # If there are programs that you know run long that you don't # want to bell after, then add them to $zbell_ignore. # # This script...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zbell/zbell.plugin.zsh", "license": "mit", "size": 2814}
### File: plugins/zeus/zeus.plugin.zsh # Some aliases for zeus. (See: https://github.com/burke/zeus) # Zeus preloads your Rails environment and forks that process whenever # needed. This effectively speeds up Rails' boot process to under 1 sec. # Init alias zi='zeus init' alias zinit='zeus init' # Start alias zs='zeu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zeus/zeus.plugin.zsh", "license": "mit", "size": 1642}
### File: plugins/zoxide/zoxide.plugin.zsh if (( $+commands[zoxide] )); then eval "$(zoxide init zsh)" else echo '[oh-my-zsh] zoxide not found, please install it from https://github.com/ajeetdsouza/zoxide' fi
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zoxide/zoxide.plugin.zsh", "license": "mit", "size": 170}
### File: plugins/zsh-interactive-cd/zsh-interactive-cd.plugin.zsh #!/usr/bin/env zsh # # Copyright 2017-2018 Henry Chang # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-interactive-cd/zsh-interactive-cd.plugin.zsh", "license": "mit", "size": 4794}
### File: plugins/zsh-navigation-tools/Makefile NAME=zsh-navigation-tools INSTALL?=install -c PREFIX?=/usr/local SHARE_DIR?=$(DESTDIR)$(PREFIX)/share/$(NAME) DOC_DIR?=$(DESTDIR)$(PREFIX)/share/doc/$(NAME) all: install: $(INSTALL) -d $(SHARE_DIR) $(INSTALL) -d $(SHARE_DIR)/.config $(INSTALL) -d $(SHARE_DIR)/.confi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/Makefile", "license": "mit", "size": 1298}
### File: plugins/zsh-navigation-tools/doc/generate_single_file #!/bin/zsh local PLUGIN_FILE="doc/zshnavigationtools.plugin.zsh" [ -d doc ] || cd .. rm -vf "$PLUGIN_FILE" echo "# The preamble comments apply when using ZNT as autoload functions" >>"$PLUGIN_FILE" echo "# https://github.com/psprint/zsh-navigation-tools...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/doc/generate_single_file", "license": "mit", "size": 992}
### File: plugins/zsh-navigation-tools/doc/install.sh #!/bin/sh if ! type git 2>/dev/null 1>&2; then echo "Please install GIT first" echo "Exiting" exit 1 fi # # Clone or pull # if ! test -d "$HOME/.config"; then mkdir "$HOME/.config" fi if ! test -d "$HOME/.config/znt"; then mkdir "$HOME/.confi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/doc/install.sh", "license": "mit", "size": 2033}
### File: plugins/zsh-navigation-tools/doc/n-preview # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-preview` to .zshrc # # This is partially a test if n-list-draw and n-list-input can be # used multiple times to create multiple lists. It might become # more usable if someone adds more featur...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/doc/n-preview", "license": "mit", "size": 6361}
### File: plugins/zsh-navigation-tools/doc/znt-tmux.zsh #!/usr/bin/env zsh # Copyright (c) 2016, Zsolt Lengyel # Modifications copyright (c) 2016, Sebastian Gniazdowski # # This script opens a new, temporary tmux pane and runs n-history. When # a selection is made, the result (history entry) is pasted back into # ori...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/doc/znt-tmux.zsh", "license": "mit", "size": 2147}
### File: plugins/zsh-navigation-tools/n-aliases # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-aliases` to .zshrc # # This function allows to choose an alias for edition with vared # # Uses n-list emulate -L zsh setopt extendedglob zmodload zsh/curses zmodload zsh/parameter local IFS=" "...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-aliases", "license": "mit", "size": 918}
### File: plugins/zsh-navigation-tools/n-cd # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-cd` to .zshrc # # This function allows to choose a directory from pushd stack # # Uses n-list emulate -L zsh setopt extendedglob pushdignoredups zmodload zsh/curses local IFS=" " # Unset before con...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-cd", "license": "mit", "size": 1871}
### File: plugins/zsh-navigation-tools/n-env # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-env` to .zshrc # # This function allows to choose an environment variable # for edition with vared # # Uses n-list emulate -L zsh setopt extendedglob unsetopt equals zmodload zsh/curses local IFS="...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-env", "license": "mit", "size": 890}
### File: plugins/zsh-navigation-tools/n-functions # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-functions` to .zshrc # # This function allows to choose a function for edition with vared # # Uses n-list emulate -L zsh setopt extendedglob zmodload zsh/curses zmodload zsh/parameter local I...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-functions", "license": "mit", "size": 1161}
### File: plugins/zsh-navigation-tools/n-history # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-history` to .zshrc # # This function allows to browse Z shell's history and use the # entries # # Uses n-list emulate -L zsh setopt extendedglob zmodload zsh/curses zmodload zsh/parameter local...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-history", "license": "mit", "size": 12837}
### File: plugins/zsh-navigation-tools/n-kill # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-kill` to .zshrc # # This function allows to choose a process and a signal to send to it # # Uses n-list emulate -L zsh setopt extendedglob zmodload zsh/curses local IFS=" " [ -f ~/.config/znt/n-l...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-kill", "license": "mit", "size": 2201}
### File: plugins/zsh-navigation-tools/n-list # $1, $2, ... - elements of the list # $NLIST_NONSELECTABLE_ELEMENTS - array of indexes (1-based) that cannot be selected # $REPLY is the output variable - contains index (1-based) or -1 when no selection # $reply (array) is the second part of the output - use the index (RE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-list", "license": "mit", "size": 17478}
### File: plugins/zsh-navigation-tools/n-list-draw # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-list-draw` to .zshrc # # This is an internal function not for direct use emulate -L zsh zmodload zsh/curses setopt typesetsilent extendedglob _nlist_print_with_ansi() { local win="$1" te...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-list-draw", "license": "mit", "size": 4374}
### File: plugins/zsh-navigation-tools/n-list-input # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-list-input` to .zshrc # # This is an internal function not for direct use emulate -L zsh zmodload zsh/curses setopt typesetsilent # Compute first to show index _nlist_compute_first_to_show_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-list-input", "license": "mit", "size": 9537}
### File: plugins/zsh-navigation-tools/n-options # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-options` to .zshrc # # This function allows to browse and toggle shell's options # # Uses n-list #emulate -L zsh zmodload zsh/curses local IFS=" " unset NLIST_COLORING_PATTERN [ -f ~/.config/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-options", "license": "mit", "size": 1934}
### File: plugins/zsh-navigation-tools/n-panelize # Copy this file into /usr/share/zsh/site-functions/ # and add 'autoload n-panelize` to .zshrc # # This function somewhat reminds the panelize feature from Midnight Commander # It allows browsing output of arbitrary command. Example usage: # v-panelize ls /usr/local/bin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oh-my-zsh", "path": "plugins/zsh-navigation-tools/n-panelize", "license": "mit", "size": 1500}