Commit Graph

32 Commits

Author SHA1 Message Date
Bas Kok
53276973f7
fix(fish): use PATH instead of fish_user_paths (#1709) 2024-01-18 12:27:09 +11:00
Bas Kok
0ffee7224b
fix: use universal scope for fish_user_paths (#1699)
Co-authored-by: James Hegedus <jthegedus@hey.com>
2024-01-10 23:25:11 +11:00
Yuri Pieters
5ac30328a7
fix(fish): use builtin realpath over system one (#1637)
Co-authored-by: Yuri Pieters <yuri.pieters@anaplan.com>
2023-09-13 00:29:07 +10:00
Edwin Kofler
e83d71e43f
fix: Make asdf.fish compatible with Fish 3.1.2 (#1590) 2023-08-14 17:34:51 +01:00
Yuri Pieters
d1a563dcc0
fix(fish)!: don't resolve symlinks for ASDF_DIR (#1583)
Co-authored-by: Yuri Pieters <yuri.pieters@anaplan.com>
2023-07-01 23:53:30 +10:00
Edwin Kofler
00fee78423
fix!: Remove files containing only asdf wrapper functions (#1525) 2023-04-01 03:22:24 +00:00
Edwin Kofler
8919f4009e
fix!: align Fish entrypoint behaviour with other shells (#1524) 2023-03-30 07:27:23 +00:00
Yuri Pereira Constante
b8f6218bf1
refactor: use fish_add_path during fish setup if available (#1317) 2022-08-31 01:18:25 +10:00
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