mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-26 10:23:06 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02e5c89d20 |
No files matched your search
@@ -90,7 +90,6 @@ colorize_less() {
|
||||
# (e.g. when not scrolled to the bottom) while already the next file will be displayed.
|
||||
local LESSOPEN="| zsh -c 'source \"$ZSH_COLORIZE_PLUGIN_PATH\"; \
|
||||
ZSH_COLORIZE_TOOL=$ZSH_COLORIZE_TOOL ZSH_COLORIZE_STYLE=$ZSH_COLORIZE_STYLE \
|
||||
ZSH_COLORIZE_CHROMA_FORMATTER=$ZSH_COLORIZE_CHROMA_FORMATTER \
|
||||
colorize_cat %s 2> /dev/null'"
|
||||
|
||||
# LESSCLOSE will be set to prevent any errors by executing a user script
|
||||
|
||||
@@ -18,6 +18,8 @@ plugins=(... git)
|
||||
| `g` | `git` |
|
||||
| `ga` | `git add` |
|
||||
| `gaa` | `git add --all` |
|
||||
| `gan` | `git add --intent-to-add` |
|
||||
| `ganpa` | `git add --intent-to-add . && git add --patch` |
|
||||
| `gapa` | `git add --patch` |
|
||||
| `gau` | `git add --update` |
|
||||
| `gav` | `git add --verbose` |
|
||||
|
||||
@@ -116,6 +116,8 @@ alias ggpur='ggu'
|
||||
alias g='git'
|
||||
alias ga='git add'
|
||||
alias gaa='git add --all'
|
||||
alias gan='git add --intent-to-add'
|
||||
alias ganpa='git add --intent-to-add . && git add --patch'
|
||||
alias gapa='git add --patch'
|
||||
alias gau='git add --update'
|
||||
alias gav='git add --verbose'
|
||||
|
||||
@@ -80,17 +80,3 @@ zstyle ':omz:plugins:laravel' php 'herd php'
|
||||
| `paqr` | `php artisan queue:retry` |
|
||||
| `paqt` | `php artisan queue:table` |
|
||||
| `paqw` | `php artisan queue:work` |
|
||||
|
||||
## Modules
|
||||
|
||||
Aliases for [nWidart/laravel-modules](https://github.com/nWidart/laravel-modules).
|
||||
|
||||
| Alias | Description |
|
||||
|:-:|:-:|
|
||||
| `pamol` | `php artisan module:list` |
|
||||
| `pamomk` | `php artisan module:make` |
|
||||
| `pamoe` | `php artisan module:enable` |
|
||||
| `pamod` | `php artisan module:disable` |
|
||||
| `pamom` | `php artisan module:migrate` |
|
||||
| `pamomr` | `php artisan module:migrate-rollback` |
|
||||
| `pamos` | `php artisan module:seed` |
|
||||
@@ -53,13 +53,4 @@ alias paqr="$_omz_laravel_php artisan queue:retry"
|
||||
alias paqt="$_omz_laravel_php artisan queue:table"
|
||||
alias paqw="$_omz_laravel_php artisan queue:work"
|
||||
|
||||
# Modules (nWidart/laravel-modules)
|
||||
alias pamol="$_omz_laravel_php artisan module:list"
|
||||
alias pamomk="$_omz_laravel_php artisan module:make"
|
||||
alias pamoe="$_omz_laravel_php artisan module:enable"
|
||||
alias pamod="$_omz_laravel_php artisan module:disable"
|
||||
alias pamom="$_omz_laravel_php artisan module:migrate"
|
||||
alias pamomr="$_omz_laravel_php artisan module:migrate-rollback"
|
||||
alias pamos="$_omz_laravel_php artisan module:seed"
|
||||
|
||||
unset _omz_laravel_php
|
||||
@@ -1,7 +1,7 @@
|
||||
# Pre-commit plugin
|
||||
|
||||
This plugin adds aliases for common commands of [pre-commit](https://pre-commit.com/).
|
||||
It also supports [prek](https://github.com/j178/prek) as a drop-in replacement.
|
||||
It also supports [prek](https://github.com/prek/prek) as a drop-in replacement.
|
||||
If `prek` is available, it will be used; otherwise, `pre-commit` is used as fallback.
|
||||
|
||||
To use this plugin, add it to the plugins array in your zshrc file:
|
||||
|
||||
@@ -4,9 +4,6 @@ Initializes [zsh-patina](https://github.com/michel-kraemer/zsh-patina), a
|
||||
"blazingly fast Zsh plugin performing syntax highlighting of your command line
|
||||
while you type 🌈"
|
||||
|
||||
The plugin also caches completions for the `zsh-patina` command in
|
||||
`$ZSH_CACHE_DIR/completions/_zsh-patina`, refreshed each time the plugin loads.
|
||||
|
||||
To use it, add `zsh-patina` to the plugins array in your `.zshrc` file:
|
||||
|
||||
```zsh
|
||||
|
||||
@@ -2,20 +2,6 @@ if (( $+ZSH_HIGHLIGHT_VERSION )) || (( ${plugins[(Ie)zsh-syntax-highlighting]} )
|
||||
echo '[oh-my-zsh] zsh-patina conflicts with zsh-syntax-highlighting, please enable only one of them'
|
||||
elif [[ -x ${ZSH_PATINA_BINARY:-$commands[zsh-patina]} ]]; then
|
||||
eval "$(${ZSH_PATINA_BINARY:-$commands[zsh-patina]} activate)"
|
||||
|
||||
# If the completion file doesn't exist yet, we need to autoload it and
|
||||
# bind it to `zsh-patina`. Otherwise, compinit will have already done that.
|
||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_zsh-patina" ]]; then
|
||||
typeset -g -A _comps
|
||||
autoload -Uz _zsh-patina
|
||||
_comps[zsh-patina]=_zsh-patina
|
||||
fi
|
||||
|
||||
zmodload -F zsh/files b:zf_mv
|
||||
() {
|
||||
local TMPPREFIX="$ZSH_CACHE_DIR/completions/._zsh-patina"
|
||||
zf_mv -f -- =( "$1" completion ) "$ZSH_CACHE_DIR/completions/_zsh-patina"
|
||||
} "${ZSH_PATINA_BINARY:-$commands[zsh-patina]}" &|
|
||||
else
|
||||
echo '[oh-my-zsh] zsh-patina not found, please install it from https://github.com/michel-kraemer/zsh-patina'
|
||||
fi
|
||||
Reference in new issue
Block a user