Commit Graph

24 Commits

Author SHA1 Message Date
Shane Liesegang
6fc4bb8fc6
fix: make fish shell setup match other shells (#1209)
The asdf.sh file only sets `ASDF_DIR` if it hasn't already been set. This change to the fish file has it do the same.
2022-04-21 09:40:43 -04:00
Elijah
cc7778a040
feat: Elvish Shell support (#1066) 2021-11-18 21:05:27 +11:00
Trevor Brown
f125741fb5 Update code to use . instead of source 2021-05-21 12:03:06 -04:00
Lucas Vasconcelos
0d7a939934 fix shims folder path 2020-08-12 10:12:22 -03:00
Lucas Vasconcelos
22d79ae121 make sure the shims folder is appended to path only once 2020-08-11 20:11:24 -03:00
Pablo Lalloni
5bad5f4214 Remove shebang lines of sourced scripts 2019-12-31 09:48:56 -03:00
Victor Hugo Borja
e968fe6142 Subcommand-aware command line interface. 2019-11-27 12:17:17 -06:00
Gabe Durazo
0d2648c7f4
A different approach 2019-07-22 18:44:32 -05:00
Gabe Durazo
e227c3cda1
Fix PATH spacing issue in asdf.fish 2019-07-22 07:42:48 -05:00
jechol
80740f9876 Fix setting PATH to work with fish 2.2 2019-04-09 16:10:43 +09:00
jechol
32512ecc9d Always prepend asdf_bin_dirs to PATH 2019-04-09 16:10:43 +09: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
조성빈
61d910b9f9
Update asdf.fish 2019-03-18 15:04:13 +09: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
조성빈
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
Kossak
d0e2b09e01 fix "asdf update" on fish 2019-01-24 20:42:58 +01:00
Robert Clark
733b4d8dde Updated test for path 2018-12-29 18:46:22 -05:00
Robert Clark
08655e9606 Fixed user paths for fish 2018-12-29 14:17:38 -05:00
mig4
538777de95
Fix fish shell init snippet
- add `bin` and `shims` directories from asdf installation to PATH
- add `shims` directory from `$ASDF_DATA_DIR` (default `$HOME/.asdf`) to
  PATH
- don't create directories in init script (directories are only added to
  PATH if they exist, besides there is no warning when a directory does
  not exist (perhaps it was a bug that was fixed))

This brings the fish snippet closer to the one for sh.
2018-11-01 22:12:09 +00:00
Jose Luis Salas
c86707c55f
Add config option to install plugins in $HOME/.asdf 2018-08-11 15:37:56 +02:00
Sasha Friedenberg
adfe8c188b Fix issue with Fish shell shim loading script 2018-07-11 13:14:30 -04:00
ipatch
7102719d5b more terse solution for previous commit 2018-03-29 12:41:05 -05:00
ipatch
b6bc0b01ad add a more robust check for bins in shims dir for fish shell users 2018-03-28 23:49:40 -05:00
Daniel Perez
3d388ec0a2 Add fish support. 2016-04-18 16:33:14 +09:00