lclarkmichalek / archey3

Simple python script to print the Archlinux logo with basic system information.
http://bluepeppers.github.com/archey3
Other
62 stars 27 forks source link

$EDITOR in zsh #32

Open Nohac opened 8 years ago

Nohac commented 8 years ago

Archey3 is not picking up the $EDITOR environment variable from zsh. The command: echo $EDITOR gives output vim, but archey gives me None. If I set the $EDITOR variable in .bashrc and run: bash -c -i archey3 from zsh, I get the correct output.

lclarkmichalek commented 8 years ago

The program calls os.getenv, which, while a tad antiquated, should just get the value of the environment variable named EDITOR, from whichever shell it was run from. Could you share the output of the env command, followed by the archey3 command, when run from the same terminal? This would be very useful to diagnose the issue

LukeShu commented 7 years ago

You probably have the variable set in zsh, but not exported. The same thing can happen with bash.