add content
This commit is contained in:
parent
94df7c8562
commit
cc9afc5ffe
140 changed files with 10414 additions and 1 deletions
16
data/home/.config/nnn/plugins/suedit
Executable file
16
data/home/.config/nnn/plugins/suedit
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# Description: Edit file as superuser
|
||||
#
|
||||
# Shell: POSIX compliant
|
||||
# Author: Anna Arad
|
||||
|
||||
EDITOR="${EDITOR:-vim}"
|
||||
|
||||
if type sudo >/dev/null 2>&1; then
|
||||
sudo -E "$EDITOR" "$1"
|
||||
elif type sudoedit >/dev/null 2>&1; then
|
||||
sudoedit -E "$1"
|
||||
elif type doas >/dev/null 2>&1; then
|
||||
doas "$EDITOR" "$1"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue