「text_editor」で始まるコマンドに「&disown」を自動的に追加しますか?

「text_editor」で始まるコマンドに「&disown」を自動的に追加しますか?

テキストエディタを使用してファイルを開きます。

text_editor test.txt

まるでそんな風に走りたい…

text_editor test.txt & disown

ベストアンサー1

text_editor常に同じシェル機能を使用している場合。

text_editor(){
    /usr/bin/text_editor "$@" & disown
}

このコードを入力し~/.bashrcてシェルを再起動してください。

text_editorこれは、コマンドを実行したいコマンドを実行するシェル関数に置き換えることによって行われます。

おすすめ記事