mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-25 01:47:25 +08:00
Compare commits
12 Commits
01bfb57446
...
2c0315dba4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c0315dba4 | ||
|
|
79fff1ee49 | ||
|
|
ee7a9f6fe6 | ||
|
|
573901dd46 | ||
|
|
dbd2f77bd9 | ||
|
|
011c7153d5 | ||
|
|
6b54302b90 | ||
|
|
bccfe1389c | ||
|
|
6cb8ff391d | ||
|
|
3c61bac9a1 | ||
|
|
b6ed2e7ac3 | ||
|
|
c840594c6f |
@ -1,4 +1,34 @@
|
|||||||
## JHBuild
|
# JHBuild
|
||||||
|
|
||||||
|
This plugin adds some [JHBuild](https://developer.gnome.org/jhbuild/) aliases.
|
||||||
|
|
||||||
|
To use it, add `jhbuild` to the plugins array of your zshrc file:
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
plugins=(... jhbuild)
|
||||||
|
```
|
||||||
|
|
||||||
**Maintainer:** [Miguel Vaello](https://github.com/miguxbe)
|
**Maintainer:** [Miguel Vaello](https://github.com/miguxbe)
|
||||||
|
|
||||||
This plugin adds some jhbuild aliases and increase the completion function provided by zsh.
|
## Aliases
|
||||||
|
|
||||||
|
| Alias | Command |
|
||||||
|
|---------|---------------------------|
|
||||||
|
| `jh` | `jhbuild` |
|
||||||
|
| `jhb` | `jhbuild build` |
|
||||||
|
| `jhbo` | `jhbuild buildone` |
|
||||||
|
| `jhckb` | `jhbuild checkbranches` |
|
||||||
|
| `jhckm` | `jhbuild checkmodulesets` |
|
||||||
|
| `jhi` | `jhbuild info` |
|
||||||
|
| `jhl` | `jhbuild list` |
|
||||||
|
| `jhc` | `jhbuild clean` |
|
||||||
|
| `jhco` | `jhbuild cleanone` |
|
||||||
|
| `jhm` | `jhbuild make` |
|
||||||
|
| `jhr` | `jhbuild run` |
|
||||||
|
| `jhrd` | `jhbuild rdepends` |
|
||||||
|
| `jhsd` | `jhbuild sysdeps` |
|
||||||
|
| `jhu` | `jhbuild update` |
|
||||||
|
| `jhuo` | `jhbuild updateone` |
|
||||||
|
| `jhun` | `jhbuild uninstall` |
|
||||||
|
| `jhsh` | `jhbuild shell` |
|
||||||
|
| `jht` | `jhbuild tinderbox` |
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
# Aliases
|
# JHBuild Aliases
|
||||||
#
|
|
||||||
|
# Base
|
||||||
alias jh='jhbuild'
|
alias jh='jhbuild'
|
||||||
# Build
|
# Build
|
||||||
alias jhb='jhbuild build'
|
alias jhb='jhbuild build'
|
||||||
@ -7,12 +8,14 @@ alias jhbo='jhbuild buildone'
|
|||||||
# Checks
|
# Checks
|
||||||
alias jhckb='jhbuild checkbranches'
|
alias jhckb='jhbuild checkbranches'
|
||||||
alias jhckm='jhbuild checkmodulesets'
|
alias jhckm='jhbuild checkmodulesets'
|
||||||
# Info & list
|
# Info & List
|
||||||
alias jhi='jhbuild info'
|
alias jhi='jhbuild info'
|
||||||
alias jhl='jhbuild list'
|
alias jhl='jhbuild list'
|
||||||
# Clean
|
# Clean
|
||||||
alias jhc='jhbuild clean'
|
alias jhc='jhbuild clean'
|
||||||
alias jhco='jhbuild cleanone'
|
alias jhco='jhbuild cleanone'
|
||||||
|
# Make
|
||||||
|
alias jhm='jhbuild make'
|
||||||
# Run
|
# Run
|
||||||
alias jhr='jhbuild run'
|
alias jhr='jhbuild run'
|
||||||
# Depends
|
# Depends
|
||||||
@ -23,6 +26,7 @@ alias jhu='jhbuild update'
|
|||||||
alias jhuo='jhbuild updateone'
|
alias jhuo='jhbuild updateone'
|
||||||
# Uninstall
|
# Uninstall
|
||||||
alias jhun='jhbuild uninstall'
|
alias jhun='jhbuild uninstall'
|
||||||
|
# Shell
|
||||||
|
alias jhsh='jhbuild shell'
|
||||||
|
# Tinderbox
|
||||||
|
alias jht='jhbuild tinderbox'
|
||||||
|
|||||||
@ -41,6 +41,8 @@ subcmds=(
|
|||||||
'patch'
|
'patch'
|
||||||
'pkg'
|
'pkg'
|
||||||
'provides'
|
'provides'
|
||||||
|
'rdependents'
|
||||||
|
'rdeps'
|
||||||
'rpmpackage'
|
'rpmpackage'
|
||||||
'search'
|
'search'
|
||||||
'selfupdate'
|
'selfupdate'
|
||||||
|
|||||||
@ -1,37 +1,10 @@
|
|||||||
## NG Plugin
|
# ng plugin
|
||||||
|
|
||||||
This [ng plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/ng)
|
This plugin adds autocompletion support for [Angular's CLI](https://github.com/angular/angular-cli)
|
||||||
adds completion support for Angular's CLI (named ng).
|
(named `ng`).
|
||||||
|
|
||||||
Ng is hosted on [ng home](https://github.com/catull/angular-cli)
|
To use it, add `ng` to the plugins array of your zshrc file:
|
||||||
|
|
||||||
It is used to generate Angular 2 app "stubs", build those apps, configure them,
|
|
||||||
test them, lint them etc.
|
|
||||||
|
|
||||||
Ahem, "stubs" is not what Angular engineers refer to the items ng can generate
|
|
||||||
for you.
|
|
||||||
|
|
||||||
"Stubs" can be any one of:
|
|
||||||
- class
|
|
||||||
- component
|
|
||||||
- directive
|
|
||||||
- enum
|
|
||||||
- module
|
|
||||||
- pipe
|
|
||||||
- route
|
|
||||||
- service
|
|
||||||
|
|
||||||
At the moment, `ng completion` creates a very rough completion for Zsh and
|
|
||||||
Bash.
|
|
||||||
|
|
||||||
It is missing most of the options and a few arguments.
|
|
||||||
In future, this plugin may be shortened to simply being
|
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
eval `ng completion`
|
plugins=(... ng)
|
||||||
```
|
```
|
||||||
|
|
||||||
There is hope this materialises in the 21st century.
|
|
||||||
|
|
||||||
### CONTRIBUTOR
|
|
||||||
- Carlo Dapor ([catull](https://github.com/catull))
|
|
||||||
|
|||||||
@ -1,37 +1,27 @@
|
|||||||
# Nmap aliases plugin
|
# Nmap plugin
|
||||||
|
|
||||||
Adds some useful aliases for nmap similar to the profiles in zenmap.
|
Adds some useful aliases for [Nmap](https://nmap.org/) similar to the profiles in zenmap.
|
||||||
|
|
||||||
Nmap options are:
|
To use it, add `nmap` to the plugins array in your zshrc file:
|
||||||
* -sS - TCP SYN scan
|
|
||||||
* -v - verbose
|
|
||||||
* -T1 - timing of scan. Options are paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5)
|
|
||||||
* -sF - FIN scan (can sneak through non-stateful firewalls)
|
|
||||||
* -PE - ICMP echo discovery probe
|
|
||||||
* -PP - timestamp discovery probe
|
|
||||||
* -PY - SCTP init ping
|
|
||||||
* -g - use given number as source port
|
|
||||||
* -A - enable OS detection, version detection, script scanning, and traceroute (aggressive)
|
|
||||||
* -O - enable OS detection
|
|
||||||
* -sA - TCP ACK scan
|
|
||||||
* -F - fast scan
|
|
||||||
* --script=vulscan - also access vulnerabilities in target
|
|
||||||
|
|
||||||
## Aliases explained
|
```zsh
|
||||||
|
plugins=(... nmap)
|
||||||
|
```
|
||||||
|
|
||||||
* nmap_open_ports - Scan for open ports on target
|
## Aliases
|
||||||
* nmap_list_interfaces - List all network interfaces on host where the command runs
|
|
||||||
* nmap_slow - Slow scan that avoids to spam the targets logs
|
|
||||||
* nmap_fin - Scan to see if hosts are up with TCP FIN scan
|
|
||||||
* nmap_full - Aggressive full scan that scans all ports, tries to determine OS and service versions
|
|
||||||
* nmap_check_for_firewall - TCP ACK scan to check for firewall existence
|
|
||||||
* nmap_ping_through_firewall - Host discovery with SYN and ACK probes instead of just pings to avoid firewall
|
|
||||||
restrictions
|
|
||||||
* nmap_fast - Fast scan of the top 300 popular ports
|
|
||||||
* nmap_detect_versions - Detects versions of services and OS, runs on all ports
|
|
||||||
* nmap_check_for_vulns - Uses vulscan script to check target services for vulnerabilities
|
|
||||||
* nmap_full_udp - Same as full but via UDP
|
|
||||||
* nmap_traceroute - Try to traceroute using the most common ports
|
|
||||||
* nmap_full_with_scripts - Same as nmap_full but also runs all the scripts
|
|
||||||
* nmap_web_safe_osscan - Little "safer" scan for OS version as connecting to only HTTP and HTTPS ports doesn't look so attacking.
|
|
||||||
|
|
||||||
|
- `nmap_open_ports`: scan for open ports on target.
|
||||||
|
- `nmap_list_interfaces`: list all network interfaces on host where the command runs.
|
||||||
|
- `nmap_slow`: slow scan that avoids to spam the targets logs.
|
||||||
|
- `nmap_fin`: scan to see if hosts are up with TCP FIN scan.
|
||||||
|
- `nmap_full`: aggressive full scan that scans all ports, tries to determine OS and service versions.
|
||||||
|
- `nmap_check_for_firewall`: TCP ACK scan to check for firewall existence.
|
||||||
|
- `nmap_ping_through_firewall`: host discovery with SYN and ACK probes instead of just pings to avoid firewall restrictions.
|
||||||
|
- `nmap_fast`: fast scan of the top 300 popular ports.
|
||||||
|
- `nmap_detect_versions`: detects versions of services and OS, runs on all ports.
|
||||||
|
- `nmap_check_for_vulns`: uses vulscan script to check target services for vulnerabilities.
|
||||||
|
- `nmap_full_udp`: same as full but via UDP.
|
||||||
|
- `nmap_traceroute`: try to traceroute using the most common ports.
|
||||||
|
- `nmap_full_with_scripts`: same as nmap_full but also runs all the scripts.
|
||||||
|
- `nmap_web_safe_osscan`: little "safer" scan for OS version as connecting to only HTTP and HTTPS ports doesn't look so attacking.
|
||||||
|
- `nmap_ping_scan`: ICMP scan for active hosts.
|
||||||
|
|||||||
@ -29,4 +29,4 @@ alias nmap_full_udp="sudo nmap -sS -sU -T4 -A -v -PE -PS22,25,80 -PA21,23,80,443
|
|||||||
alias nmap_traceroute="sudo nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute "
|
alias nmap_traceroute="sudo nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute "
|
||||||
alias nmap_full_with_scripts="sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all "
|
alias nmap_full_with_scripts="sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all "
|
||||||
alias nmap_web_safe_osscan="sudo nmap -p 80,443 -O -v --osscan-guess --fuzzy "
|
alias nmap_web_safe_osscan="sudo nmap -p 80,443 -O -v --osscan-guess --fuzzy "
|
||||||
|
alias nmap_ping_scan="nmap -n -sP"
|
||||||
|
|||||||
@ -14,3 +14,4 @@ plugins=(... python)
|
|||||||
| `pyfind` | Finds .py files recursively in the current directory |
|
| `pyfind` | Finds .py files recursively in the current directory |
|
||||||
| `pyclean [dirs]` | Deletes byte-code and cache files from a list of directories or the current one |
|
| `pyclean [dirs]` | Deletes byte-code and cache files from a list of directories or the current one |
|
||||||
| `pygrep <text>` | Looks for `text` in .py files |
|
| `pygrep <text>` | Looks for `text` in .py files |
|
||||||
|
| `ipython` | Runs the appropriate `ipython` version according to the activated virtualenv |
|
||||||
|
|||||||
@ -14,3 +14,5 @@ function pyclean() {
|
|||||||
# Grep among .py files
|
# Grep among .py files
|
||||||
alias pygrep='grep -r --include="*.py"'
|
alias pygrep='grep -r --include="*.py"'
|
||||||
|
|
||||||
|
# Run proper IPython regarding current virtualenv (if any)
|
||||||
|
alias ipython="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'"
|
||||||
|
|||||||
@ -8,3 +8,33 @@ To use it, add `vagrant` to the plugins array in your zshrc file:
|
|||||||
plugins=(... vagrant)
|
plugins=(... vagrant)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Aliases
|
||||||
|
|
||||||
|
| Alias | Command |
|
||||||
|
|---------|------------------------------|
|
||||||
|
| `vgi` | `vagrant init` |
|
||||||
|
| `vup` | `vagrant up` |
|
||||||
|
| `vd` | `vagrant destroy` |
|
||||||
|
| `vdf` | `vagrant destroy -f` |
|
||||||
|
| `vssh` | `vagrant ssh` |
|
||||||
|
| `vsshc` | `vagrant ssh-config` |
|
||||||
|
| `vrdp` | `vagrant rdp` |
|
||||||
|
| `vh` | `vagrant halt` |
|
||||||
|
| `vssp` | `vagrant suspend` |
|
||||||
|
| `vst` | `vagrant status` |
|
||||||
|
| `vre` | `vagrant resume` |
|
||||||
|
| `vgs` | `vagrant global-status` |
|
||||||
|
| `vpr` | `vagrant provision` |
|
||||||
|
| `vr` | `vagrant reload` |
|
||||||
|
| `vrp` | `vagrant reload --provision` |
|
||||||
|
| `vp` | `vagrant push` |
|
||||||
|
| `vsh` | `vagrant share` |
|
||||||
|
| `vba` | `vagrant box add` |
|
||||||
|
| `vbr` | `vagrant box remove` |
|
||||||
|
| `vbl` | `vagrant box list` |
|
||||||
|
| `vbo` | `vagrant box outdated` |
|
||||||
|
| `vbu` | `vagrant box update` |
|
||||||
|
| `vpli` | `vagrant plugin install` |
|
||||||
|
| `vpll` | `vagrant plugin list` |
|
||||||
|
| `vplun` | `vagrant plugin uninstall` |
|
||||||
|
| `vplu` | `vagrant plugin update` |
|
||||||
|
|||||||
33
plugins/vagrant/vagrant.plugin.zsh
Normal file
33
plugins/vagrant/vagrant.plugin.zsh
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
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"
|
||||||
|
alias vre="vagrant resume"
|
||||||
|
alias vgs="vagrant global-status"
|
||||||
|
|
||||||
|
alias vpr="vagrant provision"
|
||||||
|
alias vr="vagrant reload"
|
||||||
|
alias vrp="vagrant reload --provision"
|
||||||
|
|
||||||
|
alias vp="vagrant push"
|
||||||
|
alias vsh="vagrant share"
|
||||||
|
|
||||||
|
alias vba="vagrant box add"
|
||||||
|
alias vbr="vagrant box remove"
|
||||||
|
alias vbl="vagrant box list"
|
||||||
|
alias vbo="vagrant box outdated"
|
||||||
|
alias vbu="vagrant box update"
|
||||||
|
|
||||||
|
alias vpli="vagrant plugin install"
|
||||||
|
alias vpll="vagrant plugin list"
|
||||||
|
alias vplun="vagrant plugin uninstall"
|
||||||
|
alias vplu="vagrant plugin update"
|
||||||
@ -1,4 +1,7 @@
|
|||||||
PROMPT='%{$fg[yellow]%}λ %m %{$fg[green]%}%c %{$fg[yellow]%}→ $(git_prompt_info)%{$reset_color%}'
|
PROMPT='%{$fg[yellow]%}λ %m %{$fg[green]%}%c %{$fg[yellow]%}→ $(git_prompt_info)$(hg_prompt_info)%{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="λ %{$fg[blue]%}git %{$fg[red]%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX="λ %{$fg[blue]%}git %{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%} → %{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%} → %{$reset_color%}"
|
||||||
|
ZSH_THEME_HG_PROMPT_PREFIX="λ %{$fg[blue]%}hg %{$fg[red]%}"
|
||||||
|
ZSH_THEME_HG_PROMPT_SUFFIX="%{$fg[yellow]%} → %{$reset_color%}"
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ if [ -n "$remote" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
|
printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
|
||||||
if git pull --rebase --stat origin master
|
if git pull --rebase --autostash --stat origin master
|
||||||
then
|
then
|
||||||
printf '%s' "$GREEN"
|
printf '%s' "$GREEN"
|
||||||
printf '%s\n' ' __ __ '
|
printf '%s\n' ' __ __ '
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user