Comments (5)
I just needed to workaround this by setting set -g __fish_sdkman_init "/my/path/to/sdkman/bin/sdkman-init.sh"
in ~/.config/fish/config.fish
. Seems to be working fine.
Note: I have installed SDKMAN! (in my custom directory) before sdkman-for-fish and it wanted me to download and install it again.
from sdkman-for-fish.
You mean we should use SDKMAN_DIR
instead? That makes sense to me, but I'd have to look at it more closely to not break the case where sdkman-for-fish installs sdkman.
FWIW, I think this is a new feature in SDKMAN! 5.8.x; cf. #35
from sdkman-for-fish.
Thanks! I figured it should be that simple, but I'll have to figure out how to handle
- not knowing
SDKMAN_DIR
without running it first (critical), and - installing it to a custom location (nice to have).
Maybe it'll have to be an (optional) setting with HOME
as the default, but I would prefer to have an automatism.
from sdkman-for-fish.
@reitzig Maybe it could be interactive? Now, you are checking some variable and do installation if not set. What if you asked user what to do, whether SDKMAN! was already installed, etc. if such a variable is not set?
from sdkman-for-fish.
It'll be like this: If globale fish variable __sdkman_custom_dir
is set, we will respect its value.
That is, if you have a custom installation, add
set -g __sdkman_custom_dir /your/path
to .config/fish/conf.d/config_sdk.fish
.
Sorry for the long wait, but it's done now! 🙃
from sdkman-for-fish.
Related Issues (20)
- (Successful) Calls to sdk overwrite the environment, including PATH HOT 5
- Support sdkman extensions HOT 1
- Use full paths to core Unix commands in functions HOT 6
- Copy JAVA_HOME over correctly HOT 1
- SDKMAN environment variables don't change when su-ing to another user HOT 3
- If sdk is not already installed it could install it or provide instructions HOT 6
- Make compatible with Fish 3
- Make compatible with macOS HOT 4
- Error on MacOS 10.14.6 stat illegal option -c HOT 1
- Error with usage of `stat` in `sdk.fish` when running `fisher` HOT 1
- Does not install.. HOT 4
- Can't add the repo HOT 5
- Update to SDKMAN 5.9.x, 5.10.0 HOT 3
- Test documented installation path HOT 1
- sdkman_auto_env=true not working HOT 6
- Errors in initialization scripts (Windows + mingw) HOT 2
- Update to sdkman! 5.18.x HOT 2
- [Bug] Cannt find SDKMAN! for vscode terminal, but work for Windows Terminal. HOT 2
- Respect globally set SDKMAN_DIR
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdkman-for-fish.