ソースを参照

Change command order

master
Arun Prakash Jana 5年前
コミット
38de6efd48
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      plugins/suedit

+ 3
- 3
plugins/suedit ファイルの表示

@@ -12,10 +12,10 @@ is_cmd_exists () {
echo $?
}

if [ "$(is_cmd_exists sudoedit)" -eq "0" ]; then
sudoedit "$1"
elif [ "$(is_cmd_exists sudo)" -eq "0" ]; then
if [ "$(is_cmd_exists sudo)" -eq "0" ]; then
sudo "$EDITOR" "$1"
elif [ "$(is_cmd_exists sudoedit)" -eq "0" ]; then
sudoedit "$1"
elif [ "$(is_cmd_exists doas)" -eq "0" ]; then
doas "$EDITOR" "$1"
fi

||||||
x
 
000:0
読み込み中…
キャンセル
保存