Skip to content
Discussion options

You must be logged in to vote

With #4338 (nightly required atm), you can now register SFTP services in your init.lua where you can use os.getenv() to access an environment variable like this:

vf.sftp = {
  home = {
    host = "1.2.3.4",
    user = "root",
    port = 22,
    password = os.getenv("MY_PWD"),
  },
}

then start Yazi with:

yazi sftp://home

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@iandol
Comment options

@sxyazi
Comment options

@iandol
Comment options

@sxyazi
Comment options

Answer selected by iandol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants