Shell/Bash: zsh default editor Example

By

Shell/Bash Example: This is the "zsh default editor" Example. compiled from many sources on the internet by SimpleTutorials.org

zsh default editor

# Examples are for vim, but you can change the path 
# to whatever you want
# e.g: /usr/bin/code for visual studio code

# In bash:
echo "export EDITOR=/usr/bin/vim" >> ~/.bashrc
echo "export VISUAL=/usr/bin/vim" >> ~/.bashrc

# In zsh:
echo "export EDITOR=/usr/bin/vim" >> ~/.zshrc
echo "export VISUAL=/usr/bin/vim" >> ~/.zshrc

# In ksh:
echo "export EDITOR=/usr/bin/vim" >> ~/.kshrc
echo "export VISUAL=/usr/bin/vim" >> ~/.kshrc


* Summary: This "zsh default editor" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others