From: b3nj4m1n Date: Tue, 24 May 2022 16:09:49 +0000 (+0200) Subject: Update nss & python; fix intellij filename X-Git-Tag: v0.2.0.0~15 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/ef221b3bb980dfd485eeb7d826d587d47272c4ea?ds=sidebyside Update nss & python; fix intellij filename --- diff --git a/programs/intellij b/programs/intellij.json similarity index 100% rename from programs/intellij rename to programs/intellij.json diff --git a/programs/nss.json b/programs/nss.json index a0f8371..78720b1 100644 --- a/programs/nss.json +++ b/programs/nss.json @@ -2,9 +2,9 @@ "files": [ { "path": "$HOME/.pki", - "movable": true, - "help": "XDG is supported out-of-the-box, so we can simply move the file to _\"$XDG_DATA_HOME\"/pki_.\n\nBut note that some apps (chromium, for example) hardcode path to _\"$HOME\"/.pki_, so the folder may appear again, see https://bugzilla.mozilla.org/show_bug.cgi?id=818686#c11" + "movable": false, + "help": "**Disclaimer: supported, but may be created by other files.**\n\nXDG is supported out-of-the-box, so we can simply move the file to _\"$XDG_DATA_HOME\"/pki_.\n\nSome apps (chromium, for example) hardcode path to _\"$HOME\"/.pki_, so the folder may appear again, see [https://bugzilla.mozilla.org/show_bug.cgi?id=818686#c11]().\n" } ], "name": "nss" -} +} \ No newline at end of file diff --git a/programs/python.json b/programs/python.json index 0009c79..2841df9 100644 --- a/programs/python.json +++ b/programs/python.json @@ -3,8 +3,8 @@ { "path": "$HOME/.python_history", "movable": true, - "help": "Export the following environment variables:\n\n```bash\nexport PYTHONSTARTUP=\"${XDG_CONFIG_HOME}/python/pythonrc\"\n```\n\nNow create the file _pythonrc_, and put the following code into it:\n\n```python\nimport os\nimport atexit\nimport readline\n\nhistory = os.path.join(os.environ['XDG_CACHE_HOME'], 'python_history')\ntry:\n readline.read_history_file(history)\nexcept OSError:\n pass\n\ndef write_history():\n try:\n readline.write_history_file(history)\n except OSError:\n pass\n\natexit.register(write_history)\n```\nNote that this won't work if python is invoked with -i flag.\n\n_Credit:_ https://unix.stackexchange.com/a/675631/417527\n" + "help": "Export the following environment variables:\n\n```bash\nexport PYTHONSTARTUP=\"${XDG_CONFIG_HOME}/python/pythonrc\"\n```\n\nNow create the file _pythonrc_, and put the following code into it:\n\n```python\nimport os\nimport atexit\nimport readline\n\nhistory = os.path.join(os.environ['XDG_CACHE_HOME'], 'python_history')\ntry:\n readline.read_history_file(history)\nexcept OSError:\n pass\n\ndef write_history():\n try:\n readline.write_history_file(history)\n except OSError:\n pass\n\natexit.register(write_history)\n```\n\n_Note: This won't work if python is invoked with -i flag._\n\n_Credit:_ https://unix.stackexchange.com/a/675631/417527\n" } ], "name": "python" -} +} \ No newline at end of file