SET EDITOR: Difference between revisions

From CompleteNoobs
Jump to navigation Jump to search
AwesomO (talk | contribs)
Created page with "<div class="toccolours mw-collapsible mw-collapsed"> Set CLi Text <code>$EDITOR</code> - Quick Guide <div class="mw-collapsible-content"> <b>FIND WHICH SHELL YOU ARE USING</b><br> * This command will tell you your current shell. <code>echo $SHELL</code> <br> <b>SH SHELL</b> * Check if '''EDITOR''' is already set: <code>echo $EDITOR</code> * Set the environment variable: <code>set EDITOR=nano</code> * Unset the variable: <code>unset EDITOR</code> <br> <b>BASH SHELL</b> *..."
 
(No difference)

Latest revision as of 12:41, 23 June 2025

Set CLi Text $EDITOR - Quick Guide

FIND WHICH SHELL YOU ARE USING

  • This command will tell you your current shell.

echo $SHELL
SH SHELL

  • Check if EDITOR is already set:

echo $EDITOR

  • Set the environment variable:

set EDITOR=nano

  • Unset the variable:

unset EDITOR
BASH SHELL

  • Check if EDITOR is already set:

echo $EDITOR

  • Set the environment variable:

export EDITOR=nano

  • Unset the variable:
    • will export/set EDITOR to empty string

export EDITOR=