mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-10-16 11:40:46 +00:00
Compare commits
4 commits
668a0e20f2
...
8011927232
Author | SHA1 | Date | |
---|---|---|---|
|
8011927232 | ||
|
367e9381df | ||
|
f11cc8fea1 | ||
|
88214ad9f7 |
4 changed files with 24 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
certifi==2024.8.30
|
certifi==2024.8.30
|
||||||
charset-normalizer==3.3.2
|
charset-normalizer==3.3.2
|
||||||
idna==3.9
|
idna==3.10
|
||||||
PyYAML==6.0.2
|
PyYAML==6.0.2
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
semver==3.0.2
|
semver==3.0.2
|
||||||
|
|
|
@ -163,7 +163,7 @@ function git_current_branch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Outputs the name of the previously checked out branch
|
# Outputs the name of the previously checked out branch
|
||||||
# Usage example: git pull origin $(git_current_branch)
|
# Usage example: git pull origin $(git_previous_branch)
|
||||||
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
|
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
|
||||||
function git_previous_branch() {
|
function git_previous_branch() {
|
||||||
local ref
|
local ref
|
||||||
|
|
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 a new issue