mirror of https://github.com/mitchell/dotfiles.git
Use same asdf setup for both OSes
This commit is contained in:
parent
c566d70d39
commit
9140e6dd95
|
@ -1,17 +1,10 @@
|
|||
function import_sources -a uname -d 'Loads any additional fish files needed at init.'
|
||||
test -f ~/.asdf/plugins/dotnet-core/set-dotnet-home.fish; and source ~/.asdf/plugins/dotnet-core/set-dotnet-home.fish
|
||||
|
||||
switch "$uname"
|
||||
case 'Linux'
|
||||
test -e ~/.asdf/asdf.fish
|
||||
and source ~/.asdf/asdf.fish
|
||||
and mkdir -p ~/.config/fish/completions
|
||||
and cp ~/.asdf/completions/asdf.fish ~/.config/fish/completions
|
||||
case 'Darwin'
|
||||
command -q brew
|
||||
and test -e (brew --prefix asdf)/asdf.fish
|
||||
and source (brew --prefix asdf)/asdf.fish
|
||||
end
|
||||
test -e ~/.asdf/asdf.fish
|
||||
and source ~/.asdf/asdf.fish
|
||||
and mkdir -p ~/.config/fish/completions
|
||||
and ln -sf ~/.asdf/completions/asdf.fish ~/.config/fish/completions
|
||||
|
||||
# The next line updates PATH for the Google Cloud SDK.
|
||||
# if test -f '/Users/m/Documents/google-cloud-sdk/path.fish.inc'; source '/Users/m/Documents/google-cloud-sdk/path.fish.inc'; end
|
||||
|
|
Loading…
Reference in New Issue