Skip to content

Commit 2aa5c99

Browse files
committed
Only mise if mise
1 parent b4bcd4a commit 2aa5c99

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

fish/conf.d/25-rbenv.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# rbenv only outside Codespaces
2-
if not test -d /workspaces
1+
# rbenv only outside Codespaces and only if mise is not installed
2+
if not test -d /workspaces; and not command -q mise
33
status is-interactive; and command -q rbenv; and rbenv init - fish | source
44
end
55

fish/conf.d/50-asdf.fish

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# asdf completions and Golang plugin env
2-
if test -d /home/linuxbrew/.linuxbrew/opt/asdf
3-
source /home/linuxbrew/.linuxbrew/opt/asdf/share/fish/vendor_completions.d/asdf.fish
4-
end
1+
# asdf completions and Golang plugin env (only if mise is not installed)
2+
if not command -q mise
3+
if test -d /home/linuxbrew/.linuxbrew/opt/asdf
4+
source /home/linuxbrew/.linuxbrew/opt/asdf/share/fish/vendor_completions.d/asdf.fish
5+
end
56

6-
if test -d ~/.asdf/plugins/golang
7-
source ~/.asdf/plugins/golang/set-env.fish
7+
if test -d ~/.asdf/plugins/golang
8+
source ~/.asdf/plugins/golang/set-env.fish
9+
end
810
end

0 commit comments

Comments
 (0)