Horje
change default editor linux Code Example
change default editor linux
### METHOD 1 - Via Command line ###
# If you have never set it before
echo "export EDITOR='new_program'" >> ~/.bashrc
echo "export VISUAL='new_program'" >> ~/.bashrc
source ~/.bashrc

### METHOD 2 - Via Command line ###
# If you are changing an existing setting
sed -i 's/export EDITOR=\'old_program\'/export EDITOR=\'new_program\'/' ~/.bashrc
sed -i 's/export VISUAL=\'old_program\'/export VISUAL=\'new_program\'/' ~/.bashrc
source ~/.bashrc

### METHOD 3 - Via Text Editor ###
# You can also change the setting by opening ~/.bashrc in
# your favourite text editor then add/update the lines
export EDITOR='new_program'
export VISUAL='new_program'
# Exit & Save File then run below command
source ~/.bashrc




Shell

Related
command in git to close txt file Code Example command in git to close txt file Code Example
weka explorer for ubuntu Code Example weka explorer for ubuntu Code Example
SHOULD AVOID - SECURITY RISK Code Example SHOULD AVOID - SECURITY RISK Code Example
awk environment variable Code Example awk environment variable Code Example
conda install tokenizers Code Example conda install tokenizers Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9