Add read-write to less, man, more, and vi

This commit is contained in:
Emilio Pinna 2018-05-28 18:37:15 +01:00 committed by Andrea Cardaci
parent ee57eeba90
commit c3710d7396
4 changed files with 16 additions and 0 deletions

View File

@ -15,4 +15,7 @@ functions:
- code: |-
./less /etc/profile
!/bin/sh
file-read:
- code: |
less file_to_read
---

View File

@ -12,4 +12,7 @@ functions:
- code: |-
./man man
!/bin/sh
file-read:
- code: |
man file_to_read
---

View File

@ -12,4 +12,7 @@ functions:
- code: |-
TERM= ./more /etc/profile
!/bin/sh
file-read:
- code: |
more file_to_read
---

View File

@ -10,4 +10,11 @@ functions:
- code: sudo vi -c ':!/bin/sh'
suid-enabled:
- code: ./vi -c ':!/bin/sh -p'
file-read:
- code: |
vi file_to_read
file-write:
- code: |
vi file_to_write
w
---