add text/base.md
This commit is contained in:
parent
024ae0ee43
commit
78d78261e1
20
text/base.md
Normal file
20
text/base.md
Normal file
@ -0,0 +1,20 @@
|
||||
The system's default text editor can be defined within /etc/profile. It's given the variable `EDITOR`.
|
||||
|
||||
Add these lines to /etc/profile:
|
||||
|
||||
```
|
||||
|
||||
export EDITOR=vim
|
||||
|
||||
export VISUAL=$EDITOR
|
||||
|
||||
```
|
||||
|
||||
Then reload that profile with:
|
||||
|
||||
> source /etc/profile
|
||||
|
||||
If nano still pops up:
|
||||
|
||||
> sudo ln -sf $(which vim) $(which nano)
|
||||
|
Loading…
Reference in New Issue
Block a user