Fix nano
This commit is contained in:
parent
1dabd59ffc
commit
0fcc6dba06
6
mybashrc
6
mybashrc
|
@ -1,9 +1,6 @@
|
|||
#!/bin/bash
|
||||
# FUNCTIONS
|
||||
|
||||
if [ -f $HOME/.mybashrc/custom ]; then
|
||||
. $HOME/.mybashrc/custom
|
||||
fi
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
IS_SUDOERS=$(groups | grep sudo)
|
||||
if [ -n "$(command -v sudo)" ] && [ -n "$IS_SUDOERS" ]; then
|
||||
|
@ -442,8 +439,7 @@ _SITESPEED() {
|
|||
}
|
||||
|
||||
_NANO() {
|
||||
[ ! -d "$HOME/.mybashrc/nanobackup" ] && { mkdir -p $HOME/.mybashrc/nanobackup; }
|
||||
nano -EB -C $HOME/.mybashrc/nanobackup "$@"
|
||||
nano -E -C "$@"
|
||||
}
|
||||
|
||||
_SETUP_TOOLS() {
|
||||
|
|
Loading…
Reference in New Issue