Advertisement
grahamperrin

Confusion with environment variables for /usr/local/bin/zsh

Mar 20th, 2021
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. % grep nano ~/.profile
  2. EDITOR=/usr/local/bin/nano; export EDITOR
  3. VISUAL=/usr/local/bin/nano; export VISUAL
  4. %
  5.  
  6. ----
  7.  
  8. % cat /usr/share/games/fortune/freebsd-tips | grep -B 1 -A 5 variables
  9. %
  10. You can permanently set environment variables for your shell by putting them
  11. in a startup file for the shell. The name of the startup file varies
  12. depending on the shell - csh and tcsh uses .login, bash, sh, ksh and zsh use
  13. .profile. When using bash, sh, ksh or zsh, don't forget to export the
  14. variable.
  15. %
  16. %
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement