]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Added antidot configs
authorb3nj4m1n <b3nj4m1n@gmx.net>
Mon, 16 May 2022 18:43:10 +0000 (20:43 +0200)
committerb3nj4m1n <b3nj4m1n@gmx.net>
Mon, 16 May 2022 18:43:10 +0000 (20:43 +0200)
Closes #2

Conversion done using Scr0nch's https://gitlab.com/Scr0nch/antidot-to-xdg-ninja-config-transformer/

20 files changed:
README.md
programs/aria2.json
programs/bash.json [new file with mode: 0644]
programs/ccache.json [new file with mode: 0644]
programs/chez.json [new file with mode: 0644]
programs/fontconfig.json [new file with mode: 0644]
programs/fonts.json [new file with mode: 0644]
programs/gdb.json [new file with mode: 0644]
programs/gem.json [new file with mode: 0644]
programs/httpie.json [new file with mode: 0644]
programs/less.json [new file with mode: 0644]
programs/lnav.json [new file with mode: 0644]
programs/mapscii.json [new file with mode: 0644]
programs/pex.json [new file with mode: 0644]
programs/pylint.json [new file with mode: 0644]
programs/qrcp.json [new file with mode: 0644]
programs/racket.json [new file with mode: 0644]
programs/tig.json [new file with mode: 0644]
programs/weechat.json [new file with mode: 0644]
programs/xcompose.json [new file with mode: 0644]

index d97b7e83db37051324de0d2d9bdfde8d7b106aae..7204c1d1efcf2839dba4972a169f343df932b49f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ A shell script which checks your _$HOME_ for unwanted files and directories.
 
 When it encounters a file it knows about, it will tell you whether it's possible to move this file to an appropriate location, and how to do it.
 
 
 When it encounters a file it knows about, it will tell you whether it's possible to move this file to an appropriate location, and how to do it.
 
-Currently, a subset of the [arch wiki page on XDG_BASE_DIR](https://wiki.archlinux.org/title/XDG_Base_Directory) is implemented as configurations.
+The configurations are from the [arch wiki page on XDG_BASE_DIR](https://wiki.archlinux.org/title/XDG_Base_Directory), [antidot](https://github.com/doron-cohen/antidot) (thanks to Scr0nch for writing a conversion tool), and contributed by other users.
 
 ## Running
 
 
 ## Running
 
index 26ad0fe4b0946d2f90cf42a6564359eb40c9c2ba..62751d8da325bf4632970312d405da09ff6418de 100644 (file)
@@ -1,10 +1,15 @@
 {
 {
-    "name": "aria2",
+    "name": "aria2_dir",
     "files": [
         {
     "files": [
         {
-            "path": "$HOME/.aria2",
-            "movable": true,
-            "help": "Supported since commit _8bc1d37_.\n\nYou can move the configuration file to _XDG_CONFIG_HOME/aria2/aria2.conf_.\n\nYou can move the cache files to _XDG_CACHE_HOME/aria2_.\n"
+            "path": "${HOME}/.aria2/dht.dat",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.aria2/dht.dat can be moved to ${XDG_CACHE_HOME}/aria2/dht.dat.\n"
+        },
+        {
+            "path": "${HOME}/.aria2/aria.conf",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.aria2/aria.conf can be moved to ${XDG_CONFIG_HOME}/aria2/aria2.conf.\n"
         }
     ]
 }
         }
     ]
 }
diff --git a/programs/bash.json b/programs/bash.json
new file mode 100644 (file)
index 0000000..7b8feec
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "bash",
+    "files": [
+        {
+            "path": "${HOME}/.bash_history",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport HISTFILE=${XDG_CACHE_HOME}/bash/history\n```\n"
+        }
+    ]
+}
diff --git a/programs/ccache.json b/programs/ccache.json
new file mode 100644 (file)
index 0000000..ea23af8
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "ccache",
+    "files": [
+        {
+            "path": "${HOME}/.ccache",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport CCACHE_DIR=${XDG_CACHE_HOME}/ccache\n```\n"
+        }
+    ]
+}
diff --git a/programs/chez.json b/programs/chez.json
new file mode 100644 (file)
index 0000000..722e131
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "chez",
+    "files": [
+        {
+            "path": "${HOME}/.chezscheme_history",
+            "moveable": true,
+            "help": "Alias petite to use custom locations:\n\n```bash\nalias petite=petite --eehistory ${XDG_DATA_HOME}/chezscheme/history\nalias scheme=scheme --eehistory ${XDG_DATA_HOME}/chezscheme/history```\n"
+        }
+    ]
+}
diff --git a/programs/fontconfig.json b/programs/fontconfig.json
new file mode 100644 (file)
index 0000000..396a6f6
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "fontconfig",
+    "files": [
+        {
+            "path": "${HOME}/.fontconfig",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.fontconfig can be moved to ${XDG_DATA_HOME}/fontconfig.\n"
+        }
+    ]
+}
diff --git a/programs/fonts.json b/programs/fonts.json
new file mode 100644 (file)
index 0000000..667f395
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "fonts",
+    "files": [
+        {
+            "path": "${HOME}/.fonts",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.fonts can be moved to ${XDG_DATA_HOME}/fonts.\n"
+        }
+    ]
+}
diff --git a/programs/gdb.json b/programs/gdb.json
new file mode 100644 (file)
index 0000000..f0898fc
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "gdb",
+    "files": [
+        {
+            "path": "${HOME}/.gdbinit",
+            "moveable": true,
+            "help": "Alias gdb to use custom locations:\n\n```bash\nalias gdb=gdb -n -x $XDG_CONFIG_HOME/gdb/init```\n"
+        }
+    ]
+}
diff --git a/programs/gem.json b/programs/gem.json
new file mode 100644 (file)
index 0000000..d926587
--- /dev/null
@@ -0,0 +1,20 @@
+{
+    "name": "gem",
+    "files": [
+        {
+            "path": "${HOME}/.gem/ruby",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.gem/ruby can be moved to ${XDG_CONFIG_HOME}/gem.\n"
+        },
+        {
+            "path": "${HOME}/.gem",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport GEM_HOME=${XDG_DATA_HOME}/gem\n```\n"
+        },
+        {
+            "path": "${HOME}/.gem/specs",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport GEM_SPEC_CACHE=${XDG_CACHE_HOME}/gem\n```\n"
+        }
+    ]
+}
diff --git a/programs/httpie.json b/programs/httpie.json
new file mode 100644 (file)
index 0000000..2237d48
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "httpie",
+    "files": [
+        {
+            "path": "${HOME}/.httpie",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.httpie can be moved to ${XDG_CONFIG_HOME}/httpie.\n"
+        }
+    ]
+}
diff --git a/programs/less.json b/programs/less.json
new file mode 100644 (file)
index 0000000..2f0fb8b
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "less",
+    "files": [
+        {
+            "path": "${HOME}/.lesshst",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport LESSHISTFILE=${XDG_CACHE_HOME}/less/history\n```\n"
+        }
+    ]
+}
diff --git a/programs/lnav.json b/programs/lnav.json
new file mode 100644 (file)
index 0000000..404e6ec
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "lnav",
+    "files": [
+        {
+            "path": "${HOME}/.lnav",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.lnav can be moved to ${XDG_CONFIG_HOME}/lnav.\n"
+        }
+    ]
+}
diff --git a/programs/mapscii.json b/programs/mapscii.json
new file mode 100644 (file)
index 0000000..468034d
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "mapscii",
+    "files": [
+        {
+            "path": "${HOME}/.mapscii",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.mapscii can be moved to ${XDG_CACHE_HOME}/mapscii.\n"
+        }
+    ]
+}
diff --git a/programs/pex.json b/programs/pex.json
new file mode 100644 (file)
index 0000000..69bb3be
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "pex",
+    "files": [
+        {
+            "path": "${HOME}/.pex",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport PEX_ROOT=${XDG_CACHE_HOME}/pex\n```\n"
+        }
+    ]
+}
diff --git a/programs/pylint.json b/programs/pylint.json
new file mode 100644 (file)
index 0000000..7f196d3
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "pylint",
+    "files": [
+        {
+            "path": "${HOME}/.pylint.d",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport PYLINTHOME=${XDG_CACHE_HOME}/pylint\n```\n"
+        }
+    ]
+}
diff --git a/programs/qrcp.json b/programs/qrcp.json
new file mode 100644 (file)
index 0000000..ea76ddf
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "qrcp",
+    "files": [
+        {
+            "path": "${HOME}/.qrcp",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.qrcp can be moved to ${XDG_CONFIG_HOME}/qrcp/config.json.\n"
+        }
+    ]
+}
diff --git a/programs/racket.json b/programs/racket.json
new file mode 100644 (file)
index 0000000..430389f
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "racket",
+    "files": [
+        {
+            "path": "${HOME}/.racket",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.racket can be moved to ${XDG_CONFIG_HOME}/racket.\n"
+        }
+    ]
+}
diff --git a/programs/tig.json b/programs/tig.json
new file mode 100644 (file)
index 0000000..0d54273
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "tig",
+    "files": [
+        {
+            "path": "${HOME}/.tig_history",
+            "moveable": true,
+            "help": "Supported\n\nThe file ${HOME}/.tig_history can be moved to ${XDG_DATA_HOME}/tig/history.\n"
+        }
+    ]
+}
diff --git a/programs/weechat.json b/programs/weechat.json
new file mode 100644 (file)
index 0000000..d50e22e
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "weechat",
+    "files": [
+        {
+            "path": "${HOME}/.weechat",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport WEECHAT_HOME=${XDG_CONFIG_HOME}/weechat\n```\nAlias weechat to use custom locations:\n\n```bash\nalias weechat=weechat -d ${XDG_CONFIG_HOME}/weechat```\n"
+        }
+    ]
+}
diff --git a/programs/xcompose.json b/programs/xcompose.json
new file mode 100644 (file)
index 0000000..36d6b28
--- /dev/null
@@ -0,0 +1,15 @@
+{
+    "name": "xcompose",
+    "files": [
+        {
+            "path": "${HOME}/.XCompose",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport XCOMPOSEFILE=${XDG_CONFIG_HOME}/X11/xcompose\n```\n"
+        },
+        {
+            "path": "${HOME}/.compose-cache",
+            "moveable": true,
+            "help": "Export the following environment variables:\n\n```bash\nexport XCOMPOSECACHE=${XDG_CACHE_HOME}/X11/xcompose\n```\n"
+        }
+    ]
+}