GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Reid :ablobcatattention: (reiddragon@fedi.reimu.info)'s status on Tuesday, 22-Oct-2024 00:41:45 JSTReid :ablobcatattention:Reid :ablobcatattention:

    well, I was bored to hell so here’s a program to use if you want a DOS-like prompt for your UNIX shell

    tested with ksh93, bash, and zsh, simply compile this and set PS1, PROMPT, or whatever variable your shell uses to '$(/path/to/binary)'

    #include <stdio.h> #include <stdlib.h> int main(void) { char *path = getenv("PWD"); for (char *chr = path; *chr; chr++) { if (*chr == '/') { *chr = '\\'; } } printf("C:%s> ", path); return 0; }
    In conversationabout 8 months ago from fedi.reimu.infopermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.