Commit Graph

966 Commits

Author SHA1 Message Date
Trevor Brown
c60110c987
Merge pull request #493 from asdf-vm/where-command-improvement
Improve output of where command when system version is set
2019-03-23 11:44:15 -04:00
Trevor Brown
02f24df5e8 Improve output of where command when system version is set 2019-03-23 10:45:50 -04:00
James Hegedus
96e010396a
rename docs/hompage to docs/README to use default Docsify settings (#492)
rename docs/homepage.md to docs/README.md as the Docsify default of loading README.md works in a multi-lang setup whereas defining a custom homepage does not at this time.
2019-03-22 17:37:37 +11:00
James Hegedus
68ff07e09d
fix quote typo in docs homepage (#490)
# Summary

The homepage wasn't importing the required `.md` files appropriately due to the Docsify embed feature requiring single quotes, not double quotes.

## Other Information

We should update the information about Prettier use to specify that these pages require single quotes.
2019-03-22 17:27:07 +11:00
Daniel Perez
d75f02fc29 Update help.txt 2019-03-20 19:08:40 +00:00
Daniel Perez
1d43a052fe
Merge pull request #480 from jonmast/add-shell-command
Add "shell" subcommand for setting versions in shell session
2019-03-20 19:02:59 +00:00
Daniel Perez
f7302f5bcf
Merge pull request #487 from asdf-vm/fix-select-version
Fix select version when multiple versions available
2019-03-20 19:01:40 +00:00
Daniel Perez
edbf892fa8
Merge pull request #472 from fallwith/feature/mksh
asdf.sh: support mksh
2019-03-20 19:01:18 +00:00
fallwith
2743bcb7f7 asdf.sh: comments for script path determination
Update `asdf.sh` to explain that `$_`, `${BASH_SOURCE[0]}`, and `$0`
are used by Korn, Bash, and Zsh (and others) to obtain the path to the
script, and what those special variables mean.
2019-03-20 11:49:04 -07:00
Daniel Perez
0f0bbef50d Fix select version when multiple versions available
With the previous version, the following case would fail.
It would use python 2.7.15 when running pip
instead of version 3.7.2.

Shim for `pip`

```bash
exec /home/daniel/.asdf/bin/asdf exec "pip" "$@"
```

`.tool-versions`:

```
python 3.7.2 2.7.15 system
```
2019-03-20 17:20:01 +00:00
Daniel Perez
44fe6adc4a
Merge pull request #455 from pcr910303/patch-1
Update fish_user_paths only if it is defined
2019-03-20 17:18:26 +00:00
조성빈
61d910b9f9
Update asdf.fish 2019-03-18 15:04:13 +09:00
Daniel Perez
365a294cc3 Update CHANGELOG 2019-03-16 20:00:30 +00:00
Daniel Perez
8a4e28034b
Merge pull request #484 from asdf-vm/fix-version-handling
Fix version handling
2019-03-16 19:56:33 +00:00
Daniel Perez
f372833226 Add documentation about multiple versions 2019-03-16 19:45:38 +00:00
Daniel Perez
c06799cfca Fix legacy version and multi versions handling 2019-03-16 19:45:37 +00:00
Daniel Perez
741a731043
Merge pull request #483 from asdf-vm/update-fish-completions
Add update to Fish completions
2019-03-14 21:45:12 +00:00
Daniel Perez
396e804966 Add update to Fish completions 2019-03-14 21:29:32 +00:00
Jonathan Mast
9116e8453d
Add "shell" subcommand for setting versions in shell session
Add a "shell" command similar to the existing "global" and "local"
commands, which sets the version in an environment variable instead of
writing it to a file. This was inspired by the similar functionality in
rbenv.

It works by adding a wrapper function for the asdf command. It forwards
to a "sh-shell" command that returns the exports as shell code which is
then evaled by the wrapper. This is a little gross, but we need to run
the code in the shell context in order to set variables.

Resolves #378
2019-03-09 13:19:33 -05:00
Trevor Brown
9e30218766 Update version to 0.7.0 2019-03-02 09:45:43 -05:00
Trevor Brown
d6009d6909 Prepare changelog for 0.7.0 release 2019-03-02 09:45:32 -05:00
Trevor Brown
ba42343f92
Merge pull request #474 from asdf-vm/update-fix
Use asdf_dir instead of $ASDF_DIR
2019-03-01 15:09:46 -05:00
Trevor Brown
a60b28e716 Use asdf_dir instead of $ASDF_DIR 2019-02-28 22:55:50 -05:00
Isaac Whitfield
cf6149f622 document Spack to install plugin deps (#471) 2019-02-22 08:25:40 +11:00
fallwith
f8d843926a asdf.sh: support mksh
The mksh shell (and perhaps others too) will not be able to determine a
sourced script's path by looking at either `${BASH_SOURCE[0]}` or `$0`.

By capturing the value of `$_` as the very first thing the script does,
`asdf.sh` can use that as the input for `dirname` in order to determine
a value to use for `$ASDF_DIR`.

I have tested this change with mksh to confirm that it works, and have
also tested it with both bash and zsh to verify that neither of those
stop working.

This resolves the only compatibility issue I've ran into with asdf,
caused by mksh sourcing a script. All subsequent asdf usage involves an
asdf executable doing the sourcing, so it's bash to bash at that point.
2019-02-20 16:42:45 -08:00
James Hegedus
76410eca46
show site url in readme (#467) 2019-02-14 15:10:01 +11:00
Trevor Brown
62cd0561e2 Create CNAME 2019-02-12 09:12:13 -05:00
Trevor Brown
2920bc46e6
Merge pull request #463 from HeroicEric/patch-1
Fix typo
2019-02-11 12:17:03 -05:00
Eric Kelly
8d63379eeb
Fix typo 2019-02-11 09:00:14 -08:00
James Hegedus
abea57501d
add "versions" to docs subtitle (#462)
as with #460
2019-02-11 17:39:15 +11:00
Trevor Brown
0b49f05c72 Add the word version to README tagline and description (#460)
An attempt to clarify the purpose of asdf by making it clear it's for managing multiple versions of runtimes.
2019-02-11 09:28:25 +11:00
Trevor Brown
b1d8ead5a0 Delete CNAME 2019-02-05 08:54:48 -05:00
Trevor Brown
4739b38c2e Create CNAME 2019-02-05 08:54:22 -05:00
조성빈
19c6077883
Update fish_user_paths only if it is defined
fish_user_paths variable is prepended to $PATH automatically. Some people set fish_user_paths, while others set PATH.
It will be better to test if fish_user_paths is set, and prepend it if it is, while just prepending to PATH otherwise.
2019-02-03 18:17:18 +09:00
Davor Badrov
d9e2d567f8 [docs] add commands for macOS and Fedora plugins dependencies (#454) 2019-02-02 20:56:49 +11:00
James Hegedus
f19d5a25ee
add list of improvements to docs (#448) 2019-02-01 22:59:11 +11:00
James Hegedus
65aa5abe4e
de-dupe readme and finalise docs site (#441)
* save old readme for migration purposes

* promote new readme

* use the repo readme from the doc site homepage

* mention extendable plugin system in title and old plugin support

* improve subtitles english

* update links to direct users to the site!

* add link to docs site in readme until github repo site link is populated

* update troublesome contributing section
2019-01-29 22:31:34 +11:00
James Hegedus
57c5e9dbcb
Significant documentation site improvements (#440)
# Summary

This contains fixes and significant improvements to the documentation site.

* fixes some routing issues due to erroneous docsify config
* fixed links and layout of 404 pg
* improved the language on the landing page as per #438 
* propose a NEW_README.md tackling concerns with #438  and #422 
* use docsify specific md to emphasise some text
* add docsify-themeable plugin to improve loading experience and future proof for customisation
* improve use of `asdf-vm` over `asdf`

## Other Information

Included in this PR is a file `docs/NEW_README.md` which is my proposed README for this repo. The intention was to have all documentation in a single place, the site, and simplify the readme bringing the focus to explaining the tool rather than instructing users on how to use it.

I will create a separate PR for the README, but in the meantime the landing page composes this new readme with the ballad.
2019-01-25 19:17:20 +11:00
Trevor Brown
8d4ec0e987
Merge pull request #439 from tkossak/master
fix "asdf update" on fish
2019-01-24 15:12:40 -05:00
Kossak
d0e2b09e01 fix "asdf update" on fish 2019-01-24 20:42:58 +01:00
Victor Hugo Borja
cdd8dc105a fix shellchecks 2019-01-23 22:27:31 -06:00
Victor Hugo Borja
4b40e80776 Test that command being executed can see other tools shims on path 2019-01-23 22:18:18 -06:00
James Hegedus
3f3e0f52c5
Merge pull request #437 from chikamichi/patch-1
Mention ~/.tool-versions in uninstalling instructions
2019-01-24 11:11:10 +11:00
Jean-Denis Vauguet
bfb28b76b7
Update core-manage-asdf-vm.md 2019-01-24 00:58:45 +01:00
Victor Hugo Borja
8ccfda26b8 Prevent warning about global ASDF_DIR being undefined. 2019-01-21 22:45:32 -06:00
Victor Hugo Borja
0260c442cc Test to ensure asdf exec and asdf env use plugin custom exec-env 2019-01-21 01:33:52 -06:00
Victor Hugo Borja
2e22409c90 v0.6.4-dev 2019-01-20 14:39:18 -06:00
Victor Hugo Borja
ab59e5618f Move common functionality to utils.sh
- Make shim-exec, shim-env, and which use the same logic to look for commands
- Make sure shim-exec and which use a plugin exec-path hook as documented
  (the hook takes a relative path to the executable and returns also
   a relative path, possibly modified)
- Fix shellchecks
2019-01-20 14:02:22 -06:00
Victor Hugo Borja
9cac0ac50a Faster exec times. Load commands only when nedded.
When testing, use `run asdf` to actually test the command
as the user would invoke it, so that we might catch possible
errors on `bin/asdf`.
2019-01-20 02:13:20 -06:00
Victor Borja
7ff64ef64a
Merge pull request #435 from vic/shim-env
Add `asdf env` command
2019-01-19 21:14:31 -06:00