edit metadata

This commit is contained in:
2025-02-12 15:01:15 +01:00
parent 341b6ed46f
commit 1ce84ebc53
43 changed files with 214 additions and 207 deletions

View File

@@ -1,27 +1,24 @@
---
title: "$EDITOR"
tags: [ "System" ]
tags: [ "system" ]
---
The System's default text editor can be defined within /etc/profile. It's given the variable `EDITOR`.
Add these lines to `/etc/profile.d/local.sh`:
```
export EDITOR=vim
export VISUAL=$EDITOR
Add these lines to `/etc/profile.d/custom.sh`:
```sh
echo 'export EDITOR=vim' >> /etc/profile.d/custom.sh
echo 'export VISUAL=$EDITOR' >> /etc/profile.d/custom.sh
```
Then reload that profile with:
```bash
```sh
source /etc/profile
```
If you want to ensure `nano` never appears again:
```bash
```sh
sudo ln -sf $(which vim) $(which nano)
```