Skip to content

Commit

Permalink
Merge branch 'main' into flake
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nj5m1n authored Feb 4, 2024
2 parents fdb0b38 + a74fefd commit 32eaaeb
Show file tree
Hide file tree
Showing 44 changed files with 383 additions and 64 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ To install xdg-ninja with [Homebrew](https://brew.sh), run `brew install xdg-nin

- your favorite POSIX-compliant shell ([bash](https://repology.org/project/bash/packages), [zsh](https://repology.org/project/zsh/packages), [dash](https://repology.org/project/dash-shell/packages), ...)
- [jq](https://repology.org/project/jq/packages) for parsing the json files
- [find](https://repology.org/project/findutils/versions)

### Optional

Expand Down
20 changes: 20 additions & 0 deletions mycli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"files": [
{
"help": "Move the file to $XDG_CONFIG_HOME/mycli/myclirc\n",
"movable": true,
"path": "$HOME/.myclirc"
},
{
"help": "Set MYCLI_HISTFILE to $XDG_STATE_HOME/mycli/mycli_history\n",
"movable": true,
"path": "$HOME/.mycli-history"
},
{
"help": "Set this in your myclirc:\n```log_file=~/.cache/mycli.log```\nDoes not work with enviorment variables\n Relevant issue : https://github.com/dbcli/mycli/issues/581\n",
"movable": true,
"path": "$HOME/.mycli.log"
}
],
"name": "mycli"
}
7 changes: 6 additions & 1 deletion programs/android.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"files": [
{
"help": "Export the following environment variable:\n\n```bash\nexport ANDROID_HOME=\"$XDG_DATA_HOME\"/android\n```\n\nAdditionally, if you use adb, use the following alias:\n\n```bash\nalias adb='HOME=\"$XDG_DATA_HOME\"/android adb'\n```\n\n",
"help": "Export the following environment variable:\n\n```bash\nexport ANDROID_USER_HOME=\"$XDG_DATA_HOME\"/android\n```\n\nAdditionally, if you use adb, use the following alias:\n\n```bash\nalias adb='HOME=\"$XDG_DATA_HOME\"/android adb'\n```\n\n",
"movable": true,
"path": "$HOME/.android"
},
{
"path": "$HOME/Android",
"movable": true,
"help": "Export the following environment variables:\n\n```bash\nexport ANDROID_HOME=\"$XDG_DATA_HOME\"/android/sdk\n```\n"
}
],
"name": "android"
Expand Down
10 changes: 10 additions & 0 deletions programs/ash.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "ash",
"files": [
{
"path": "$HOME/.ash_history",
"movable": true,
"help": "Export the following environment variables:\n\n```bash\nexport HISTFILE=\"$XDG_STATE_HOME\"/ash/history\n```\n\nYou must manually create the _$XDG_STATE_HOME/ash directory if it doesn't exist yet.\n"
}
]
}
15 changes: 15 additions & 0 deletions programs/boinc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"files": [
{
"path": "$HOME/.BOINC",
"movable": false,
"help": "Currently not supported.\n\nhttps://github.com/BOINC/boinc/blob/b978d5c14aab539116b885deebe30aa62d538fba/lib/diagnostics.cpp#L302-L303\n"
},
{
"path": "$HOME/.BOINC Manager",
"movable": false,
"help": "Currently not supported.\n"
}
],
"name": "BOINC"
}
10 changes: 10 additions & 0 deletions programs/cocoapods.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "CocoaPods",
"files": [
{
"path": "$HOME/.cocoapods",
"movable": true,
"help": "Export the following environment variables:\n\n```bash\nexport CP_HOME_DIR=\"$XDG_DATA_HOME\"/cocoapods\n```\n"
}
]
}
25 changes: 25 additions & 0 deletions programs/dart.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"files": [
{
"help": "Currently unsupported.\n\n _Relevant issue_: https://github.com/dart-lang/sdk/issues/41560\n",
"movable": false,
"path": "$HOME/.dart"
},
{
"help": "Currently unsupported.\n\n _Relevant issue_: https://github.com/dart-lang/sdk/issues/41560\n",
"movable": false,
"path": "$HOME/.dartServer"
},
{
"help": "Currently unsupported.\n\n _Relevant issue_: https://github.com/dart-lang/sdk/issues/41560\n",
"movable": false,
"path": "$HOME/.dart-tool"
},
{
"help": "Currently unsupported.\n\n _Relevant issue_: https://github.com/dart-lang/sdk/issues/41560\n",
"movable": false,
"path": "$HOME/.pub-cache"
}
],
"name": "dart"
}
6 changes: 3 additions & 3 deletions programs/dotnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"files": [
{
"path": "$HOME/.dotnet",
"movable": false,
"help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/dotnet/sdk/issues/8678\n"
"movable": true,
"help": "Export the following environment variables:\n\n```bash\nexport DOTNET_CLI_HOME=\"$XDG_DATA_HOME\"/dotnet\n```\n"
},
{
"path": "$HOME/.net",
Expand All @@ -12,4 +12,4 @@
}
],
"name": "dotnet"
}
}
15 changes: 15 additions & 0 deletions programs/dropbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Dropbox",
"files": [
{
"path": "$HOME/.dropbox",
"movable": false,
"help": "Currently unsupported.\n\n_Relevant issue_: https://github.com/dropbox/nautilus-dropbox/issues/5\n"
},
{
"path": "$HOME/.dropbox-dist",
"movable": false,
"help": "Currently unsupported.\n\n_Relevant issue_: https://github.com/dropbox/nautilus-dropbox/issues/5\n"
}
]
}
11 changes: 11 additions & 0 deletions programs/earthly.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

{
"name": "earthly",
"files": [
{
"path": "$HOME/.earthly",
"movable": false,
"help": "Currently unsupported.\n\n_Relevant issue_: https://github.com/earthly/earthly/issues/2210\n"
}
]
}
9 changes: 2 additions & 7 deletions programs/emacs.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"files": [
{
"help": "Supported since _27.1_.\n\nYou can move the file to _$XDG_CONFIG_HOME/emacs/init.el_.\n",
"help": "Supported since _27.1_.\n\nYou can move the directory to _$XDG_CONFIG_HOME/emacs_.\n",
"movable": true,
"path": "$HOME/.emacs.d/init.el"
},
{
"help": "Currently unsupported.\n\n_Relevant issue:_ \"Legacy paths have precedence over XDG paths. Emacs will never create XDG_CONFIG_HOME/emacs/.\" according to XDG.\n\n",
"movable": false,
"path": "$HOME/.emacs.d"
},
{
"help": "Looks to be supported natively. However, according to XDG \"Legacy paths have precedence over XDG paths. Emacs will never create _$XDG_CONFIG_HOME/emacs/_\".\nMove at your own risk.\n\nYou can move the file to _$XDG_CONFIG_HOME/emacs_.\n",
"help": "Supported since _27.1_.\n\nYou can move the file to _$XDG_CONFIG_HOME/emacs/init.el_.\n",
"movable": true,
"path": "$HOME/.emacs"
}
Expand Down
10 changes: 10 additions & 0 deletions programs/erlang.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "erlang",
"files": [
{
"path": "$HOME/.erlang.cookie",
"movable": true,
"help": "Erlang supports the XDG spec, so just move this file to _$XDG_CONFIG_HOME/erlang/.erlang.cookie_.\n\n"
}
]
}
4 changes: 2 additions & 2 deletions programs/expo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"path": "$HOME/.expo",
"movable": false,
"help": ""
"help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/expo/expo/discussions/18448\n"
}
],
"name": "expo"
}
}
2 changes: 1 addition & 1 deletion programs/flatpak.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"path": "$HOME/.var",
"movable": false,
"help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/flatpak/flatpak/issues/1519\n"
"help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/flatpak/flatpak/issues/3997\n"
}
],
"name": "Flatpak"
Expand Down
10 changes: 10 additions & 0 deletions programs/flyctl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "flyctl",
"files": [
{
"path": "$HOME/.fly",
"movable": true,
"help": "Export the following environment variables:\n\n```bash\nexport FLY_CONFIG_DIR=\"$XDG_STATE_HOME\"/fly\n```\n"
}
]
}
2 changes: 1 addition & 1 deletion programs/ghc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"path": "$HOME/.ghc",
"movable": false,
"help": "Currently unsupported.\n"
"help": "Supported starting with v9.4.1\n\nhttps://downloads.haskell.org/~ghc/9.4.1/docs/users_guide/9.4.1-notes.html?highlight=xdg\n"
}
],
"name": "GHC"
Expand Down
8 changes: 4 additions & 4 deletions programs/gimp.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": [
{
"help": "Currently unsupported.\n\n_Relevant issue:_ https://bugzilla.gnome.org/show_bug.cgi?id=166643\n",
"movable": false,
"path": "$HOME/.thumbnails"
"path": "$HOME/.thumbnails",
"movable": true,
"help": "Supported\n\nDirectory .thumbnails can be moved to _$XDG_CACHE_HOME/thumbnails_.\nConfiguration dicrectorycan be moved to _$XDG_CONFIG_HOME/GIMP/{GIMP_APP_VERSION}_."
}
],
"name": "gimp"
}
}
10 changes: 10 additions & 0 deletions programs/itch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "itch",
"files": [
{
"path": "$HOME/.itch",
"movable": false,
"help": "Currently unsupported.\n\nhttps://github.com/itchio/itch-setup/blob/f7e77569fee0b2dcf91b19e3c6533f4a1b5f02e9/native/native_linux.go#L39-L41\n"
}
]
}
10 changes: 10 additions & 0 deletions programs/kaggle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
{
"path": "$HOME/.kaggle",
"movable": true,
"help": "Export the following environment variables:\n\n```bash\nexport KAGGLE_CONFIG_DIR=\"$XDG_CONFIG_HOME\"/kaggle\n```\n\n_Relevant issue:_ https://github.com/Kaggle/kaggle-api/issues/269"
}
],
"name": "kaggle"
}
10 changes: 10 additions & 0 deletions programs/kani.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
{
"path": "$HOME/.kani",
"movable": true,
"help": "Export the following environment variables:\n\n```bash\nexport KANI_HOME=\"$XDG_DATA_HOME\"/kani\n```\n"
}
],
"name": "kani"
}
10 changes: 10 additions & 0 deletions programs/mixxx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
{
"path": "$HOME/.mixxx",
"movable": false,
"help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/mixxxdj/mixxx/issues/8090\n"
}
],
"name": "Mixx"
}
11 changes: 11 additions & 0 deletions programs/mtpaint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files": [
{
"path": "$HOME/.mtpaint",
"movable": true,
"help": "mtPaint supports setting its config file path through a system-wide configuration file.\n\nCreate file `/etc/mtpaint/mtpaintrc` and add the following contents:\n\n```userINI = ~/.config/mtpaint```\n\n*Relevant issue:* https://github.com/wjaguar/mtPaint/issues/22"
}
],
"name": "mtPaint"
}

10 changes: 10 additions & 0 deletions programs/neomutt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
{
"path": "$HOME/.mutt_certificates",
"movable": true,
"help": "Move the file to _$XDG_CACHE_HOME/neomutt/certificates_ and add the following to neomuttrc:\n\n```\nset certificate_file=\"$XDG_CACHE_HOME/neomutt/certificates\"\n```\n"
}
],
"name": "neomutt"
}
10 changes: 10 additions & 0 deletions programs/ngrok.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "ngrok",
"files": [
{
"path": "$HOME/.ngrok2",
"movable": true,
"help": "Ngrok v3 uses the XDG spec.\n Update from v2 to v3 and run the following command to automatically relocate your configuration to __XDG_CONFIG_HOME__:\n\n```ngrok config upgrade --relocate```\n\nYou have to manually delete the old folder in your __HOME__ after that."
}
]
}
6 changes: 3 additions & 3 deletions programs/nix.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
{
"path": "$HOME/.nix-channels",
"movable": false,
"help": "New nix command line interface supports XDG Base Directory but Old Commands will still create these directories.\n\n_Relevant Issue_: https://github.com/NixOS/nix/issues/1079\n\n"
"help": "New nix command line interface supports XDG Base Directory but Old Commands will still create these directories.\n\nTo use the XDG spec with the old command line, add to `/etc/nix/nix.conf`:\n\n```use-xdg-base-directories = true```\n\nYou also have to manually move the the file to __XDG_STATE_HOME__:\n\n```mv \"$HOME/.nix-channels\" \"$XDG_STATE_HOME/nix/channels\"```\n\n_See the Manual_: https://nixos.org/manual/nix/stable/command-ref/conf-file#conf-use-xdg-base-directories\n\n"
},
{
"path": "$HOME/.nix-defexpr",
"movable": false,
"help": "New nix command line interface supports XDG Base Directory but Old Commands will still create these directories.\n\n_Relevant Issue_: https://github.com/NixOS/nix/issues/1079\n\n"
"help": "New nix command line interface supports XDG Base Directory but Old Commands will still create these directories.\n\nTo use the XDG spec with the old command line, add to `/etc/nix/nix.conf`:\n\n```use-xdg-base-directories = true```\n\nYou also have to manually move the the file to __XDG_STATE_HOME__:\n\n```mv \"$HOME/.nix-defexpr\" \"$XDG_STATE_HOME/nix/defexpr\"```\n\n_See the Manual_: https://nixos.org/manual/nix/stable/command-ref/conf-file#conf-use-xdg-base-directories\n\n"
},
{
"path": "$HOME/.nix-profile",
"movable": false,
"help": "New nix command line interface supports XDG Base Directory but Old Commands will still create these directories.\n\n_Relevant Issue_: https://github.com/NixOS/nix/issues/1079\n\n"
"help": "New nix command line interface supports XDG Base Directory but Old Commands will still create these directories.\n\nTo use the XDG spec with the old command line, add to `/etc/nix/nix.conf`:\n\n```use-xdg-base-directories = true```\n\nYou also have to manually move the the file to __XDG_STATE_HOME__:\n\n```mv \"$HOME/.nix-profile\" \"$XDG_STATE_HOME/nix/profile\"```\n\n_See the Manual_: https://nixos.org/manual/nix/stable/command-ref/conf-file#conf-use-xdg-base-directories\n\n"
}
]
}
10 changes: 10 additions & 0 deletions programs/ohmyzsh.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
"path": "$HOME/.oh-my-zsh",
"movable": true,
"help": "See the relevant [issue](https://github.com/ohmyzsh/ohmyzsh/issues/9543).\n\nExport the following environment variables:\n\n```bash\nexport ZSH=\"$XDG_DATA_HOME\"/oh-my-zsh \n```\n"
},
{
"path": "$HOME/.zshrc.pre-oh-my-zsh",
"movable": true,
"help": "If it exists, it is used when switching back to the default shell you had before installing Oh My Zsh. See the [FAQ](https://github.com/ohmyzsh/ohmyzsh/wiki/FAQ#how-do-i-uninstall-oh-my-zsh) for more information.\n\nYou can either back it up elsewhere or delete it.\n"
},
{
"path": "$HOME/.zshrc.pre-oh-my-zsh-[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]_[0-9][0-9]-[0-9][0-9]-[0-9][0-9]",
"movable": true,
"help": "If it exists, it is used when switching back to the default shell you had before installing Oh My Zsh. See the [FAQ](https://github.com/ohmyzsh/ohmyzsh/wiki/FAQ#how-do-i-uninstall-oh-my-zsh) for more information.\n\nYou can either back it up elsewhere or delete it.\n"
}
],
"name": "ohmyzsh"
Expand Down
10 changes: 10 additions & 0 deletions programs/openjfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
{
"help": "**Disclaimer: some applications don't respect this setting.**\n\nExport the following environment variable:\n\n```bash\nexport _JAVA_OPTIONS=\"-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/java -Djavafx.cachedir=${XDG_CACHE_HOME}/openjfx\"\n```\n\n_Relevant pull request:_ https://github.com/javafxports/openjdk-jfx/pull/300\n",
"movable": true,
"path": "$HOME/.openjfx"
}
],
"name": "OpenJFX"
}
10 changes: 10 additions & 0 deletions programs/pcmanfm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
{
"path": "$HOME/.thumbnails",
"movable": true,
"help": "Supported\n\nDirectory .thumbnails can be moved to _$XDG_CACHE_HOME/thumbnails_."
}
],
"name": "PCManFM"
}
10 changes: 10 additions & 0 deletions programs/pkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
{
"path": "$HOME/.pkg-cache",
"movable": true,
"help": "Export the following environment variable:\n\n```bash\nexport PKG_CACHE_PATH=\"$XDG_CACHE_HOME\"/pkg-cache\n```\n"
}
],
"name": "pkg"
}
Loading

0 comments on commit 32eaaeb

Please sign in to comment.