I am tired of creating a file with nano, saving it and then making it executable. Is there a command that makes it in one step?

  • @[email protected]
    link
    fedilink
    35
    edit-2
    7 months ago

    Write an alias/function to do it and add to your bashrc.

    function nanox() {
        nano "$1"
        chmod +x "$1"
    }
    
    • @psmgx
      link
      07 months ago

      This is the way.