Answers for "zsh default editor"

2

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
Posted by: Guest on March-18-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language