DEV Community

drew
drew

Posted on

TIL: adding asdf to arch

The instructions on the asdf website are mostly complete. The things that are missing are how to add the line "source /opt/asdf-vm/asdf.fish" to your config.fish file. If you know how to open the file in the terminal it will be easy for you, but for newbies like myself I had to do some google search to figure it out.

In my case, I used vim.
Open a terminal, type:

vim ~/.config/fish/config.fish
Enter fullscreen mode Exit fullscreen mode

Then, scroll (use arrow keys) to move your cursor all the way down to the bottom of the file(not sure if it matters where you put it, but that's where I did).

Press the "i" key to allow you to insert/edit

paste in

source /opt/asdf-vm/asdf.fish

type

:wq

to save and exit.

restart your terminal and type:

asdf --version

You should see a version now which means it has been added properly.

Top comments (2)

Collapse
 
markbdsouza profile image
Mark Dsouza

Great to see that you are back at it @andevr !

Collapse
 
andevr profile image
drew

Thanks! Now that my coding bootcamp is over I'm trying to write more often in between the projects I have going. Some big stuff in the pipe for me.