Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. mngrif :kentucky: (mngrif@qoto.org)'s status on Wednesday, 27-Mar-2019 06:02:56 UTC mngrif :kentucky: mngrif :kentucky:

    What's in your $PS1? Lately I've been adding $? (exit status) to it and I can't believe I've lived without this for so long. Turns out there's plenty of times when something seems to exit cleanly but in reality $? isn't zero. It also turns out that this is usually just fine. But not always, such as with wine.

    So, do ya'll have any must-haves in your $PS1? Obviously I'm not asking about the default username:host/path# that most PS1's are set to. That's all perfectly useful, I nestled $? between the user and the hostname, and have room for something numeric between the host and the path.

    My full PS1 including colors is:
    \[\033[38;5;5m\]\u\[\]\[\033[38;5;12m\]$?\[\]\[\033[38;5;5m\]\h\[\]\[\033[38;5;15m\]:\[\]\[\033[38;5;12m\]\w\[\]\[\033[38;5;15m\]\$\[\]

    In conversation Wednesday, 27-Mar-2019 06:02:56 UTC from qoto.org permalink

    Attachments


    1. https://storage.gra5.cloud.ovh.net/v1/AUTH_011f6e315d3744d498d93f6fa0d9b5ee/qotoorg/media_attachments/files/003/393/285/original/8f35b785f8cf1bcc.png
    • 🎓 Dr. Freemo :jpf: 🇳🇱 repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.