When I'm using Git on Mac and need to do a rebase, the Vim editor kicks in by default. I would prefer Nano – could someone please explain how to reconfigure Git to make it use Nano for rebase?
Active1 month ago
Thank you!
Under the discussion of the environment variable POSIX2_UPE (old name for feature was User Portability Extension, UPE) in POSIX 2008, there is a list of the features that are in the UPU: 'The list of utilities in the User Portability Utilities option is as follows: bg, ex, fc, fg, jobs, more, talk, vi. This will open the.bash_profile file in Text Edit (the default text editor included on your system). The file allows you to customize the environment your user runs in. Step 3: Add the following line to the end of the file adding whatever additional directory you want in your path.
Dimitri Vorontzov
migrated from stackoverflow.comNov 10 '12 at 16:06
This question came from our site for professional and enthusiast programmers.
Notepad++2 AnswersText Generatorgit config --global core.editor 'nano'
More information here:
Text Editor OnlinesunnyrjunejaWhat Is Default Text Editor For Bash In Macsunnyrjuneja
1,59611 gold badge99 silver badges44 bronze badges
If you want to use nano as your editor for all things command line, add this to your bash_profile:
export EDITOR=/usr/bin/nano
This is assuming you're using the system nano. If not, edit to suit where your nano lives (e.g. /usr/local/bin, /opt/local/bin)
Remember to source your bash_profile after setting this or open a new terminal window for the settings to work...
phildobbinphildobbin
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |