]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Update nss & python; fix intellij filename
authorb3nj4m1n <b3nj4m1n@gmx.net>
Tue, 24 May 2022 16:09:49 +0000 (18:09 +0200)
committerb3nj4m1n <b3nj4m1n@gmx.net>
Tue, 24 May 2022 16:09:49 +0000 (18:09 +0200)
programs/intellij.json [moved from programs/intellij with 100% similarity]
programs/nss.json
programs/python.json

similarity index 100%
rename from programs/intellij
rename to programs/intellij.json
index a0f83713cc6be787aa248d08016b011c104267dd..78720b126ce2228962dd2aaa94e7651f47abf6ca 100644 (file)
@@ -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
index 0009c7970a9eddfd92c142cb7f08c51ddaa2c359..2841df996646c32a728e5ed462afa43e817efc6d 100644 (file)
@@ -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