#[NeoVim] Why doesn't `os.getenv` work?
10 messages · Page 1 of 1 (latest)
works for me, is there something weired about your shell?
works with both bash and fish
it should also work in bash, zsh and fish
Zsh
Sorry, I got confused.
Getting $HOME works fine, but getting $OSTYPE does not. Why is that?
This gives linux-android:
:lua print(vim.fn.system "echo $OSTYPE")
But this returns nil:
:lua print(os.getenv "OSTYPE")
my shell doesnt declare OSTYPE
seems zsh doesn't export OSTYPE
you can use uname or not check if TERMUX_* exist