mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 15:34:50 +08:00
Compare commits
5 Commits
0f0615284d
...
f74424b7bf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f74424b7bf | ||
|
|
f84341c574 | ||
|
|
92aed2e936 | ||
|
|
ce84456118 | ||
|
|
84e39885c4 |
@ -117,7 +117,7 @@ function _omz_git_prompt_status() {
|
||||
fi
|
||||
|
||||
# For each status prefix, do a regex comparison
|
||||
for status_prefix in ${(k)prefix_constant_map}; do
|
||||
for status_prefix in "${(@k)prefix_constant_map}"; do
|
||||
local status_constant="${prefix_constant_map[$status_prefix]}"
|
||||
local status_regex=$'(^|\n)'"$status_prefix"
|
||||
|
||||
|
||||
@ -77,7 +77,15 @@ EOF
|
||||
(*.lzma) unlzma "$full_path" ;;
|
||||
(*.z) uncompress "$full_path" ;;
|
||||
(*.zip|*.war|*.jar|*.ear|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl|*.vsix|*.crx|*.pk3|*.pk4) unzip "$full_path" ;;
|
||||
(*.rar) unrar x -ad "$full_path" ;;
|
||||
(*.rar)
|
||||
if (( $+commands[unrar] )); then
|
||||
unrar x -ad "$full_path"
|
||||
elif (( $+commands[unar] )); then
|
||||
unar -o . "$full_path"
|
||||
else
|
||||
echo "extract: cannot extract RAR files: install unrar or unar" >&2
|
||||
success=1
|
||||
fi ;;
|
||||
(*.rpm)
|
||||
rpm2cpio "$full_path" | cpio --quiet -id ;;
|
||||
(*.7z | *.7z.[0-9]* | *.pk7) 7za x "$full_path" ;;
|
||||
|
||||
24
plugins/git-town/README.md
Normal file
24
plugins/git-town/README.md
Normal file
@ -0,0 +1,24 @@
|
||||
# Git-Town plugin
|
||||
|
||||
This plugin adds completion and aliases for the `git-town` command. More information
|
||||
at https://www.git-town.com.
|
||||
|
||||
Enable git-town plugin in your zshrc file:
|
||||
```
|
||||
plugins=(... git-town)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
More information about `git-town` commands:
|
||||
https://github.com/Originate/git-town#commands
|
||||
|
||||
| Alias | Command | Description |
|
||||
|---------|----------------------------|----------------------------------------|
|
||||
| `gt` | `git town` | Git-Town command |
|
||||
| `gtab` | `git town abort` | Aborts the last run git-town command |
|
||||
| `gtc` | `git town continue` | Restarts last after resolved conflict |
|
||||
| `gth` | `git town hack` | New feature branch off main branch |
|
||||
| `gtsy` | `git town sync` | Updates current branch w/ all changes |
|
||||
| `gtnpr` | `git town new-pull-request`| Create a new pull request |
|
||||
| `gtsh` | `git town ship` | Delivers feature branch and removes it |
|
||||
23
plugins/git-town/git-town.plugin.zsh
Normal file
23
plugins/git-town/git-town.plugin.zsh
Normal file
@ -0,0 +1,23 @@
|
||||
#!zsh
|
||||
#
|
||||
# Installation
|
||||
# ------------
|
||||
#
|
||||
# WIP
|
||||
|
||||
#Alias
|
||||
| `gt` | `git town` | Git-Town command |
|
||||
| `gtab` | `git town abort` | Aborts the last run git-town command |
|
||||
| `gtc` | `git town continue` | Restarts last after resolved conflict |
|
||||
| `gth` | `git town hack` | New feature branch off main branch |
|
||||
| `gtsy` | `git town sync` | Updates current branch w/ all changes |
|
||||
| `gtnpr` | `git town new-pull-request`| Create a new pull request |
|
||||
| `gtsh` | `git town ship` | Delivers feature branch and removes it |
|
||||
|
||||
alias gt='git town'
|
||||
alias gta='git town abort'
|
||||
alias gtc='git town continue'
|
||||
alias gth='git town hack'
|
||||
alias gtsy='git town sync'
|
||||
alias gtnpr='git town new-pull-request'
|
||||
alias gtsh='git town ship'
|
||||
Loading…
Reference in New Issue
Block a user