mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 01:17:24 +08:00
Compare commits
3 Commits
98493422ce
...
588dda25e6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
588dda25e6 | ||
|
|
92aed2e936 | ||
|
|
88214ad9f7 |
@ -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" ;;
|
||||
|
||||
14
plugins/sdkman/README.md
Normal file
14
plugins/sdkman/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
# sdkman
|
||||
|
||||
Plugin for SDKMAN, a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems.
|
||||
Provides initialization for different scenarios where users may have installed.
|
||||
|
||||
To use it, add `sdkman` to your plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... sdkman)
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
* [SDKMAN](http://sdkman.io/)
|
||||
8
plugins/sdkman/sdkman.plugin.zsh
Normal file
8
plugins/sdkman/sdkman.plugin.zsh
Normal file
@ -0,0 +1,8 @@
|
||||
if [[ -z "$SDKMAN_DIR" ]]; then
|
||||
if [[ -d "$HOME/.sdkman" ]]; then
|
||||
export SDKMAN_DIR="$HOME/.sdkman"
|
||||
else
|
||||
export SDKMAN_DIR="$(brew --prefix sdkman-cli)/libexec" || echo "Cannot find SDKMAN!"
|
||||
fi
|
||||
fi
|
||||
[[ -s "${SDKMAN_DIR}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR}/bin/sdkman-init.sh"
|
||||
Loading…
Reference in New Issue
Block a user