]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Add files for git & gitkraken + update php (#479)
authorLuckyWindsck <luckywindsck@gmail.com>
Sat, 7 Jun 2025 11:38:08 +0000 (20:38 +0900)
committerGitHub <noreply@github.com>
Sat, 7 Jun 2025 11:38:08 +0000 (13:38 +0200)
* feat(git): add .gitk & .gitignore

References:
- .gitconfig: https://git-scm.com/docs/git-config#SCOPES
- .git-credentials: https://git-scm.com/docs/git-credential-store#FILES
- .gitignore: https://git-scm.com/docs/gitignore#_synopsis
- .gitk: https://git-scm.com/docs/gitk#_files

* feat(gitkraken): add .gk

References:
- .gk
  - Issue: https://github.com/gitkraken/vscode-gitlens/issues/3660
  - PR: https://github.com/gitkraken/vscode-gitlens/pull/3904
  - Implementation (v17.1.1): https://github.com/gitkraken/vscode-gitlens/blob/v17.1.1/src/env/node/gk/localSharedGkStorageLocationProvider.ts#L33

* feat(php): update .php_history

References:
- .php_history: https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.readline

programs/git.json
programs/gitkraken.json
programs/php.json

index 62b6f465475384c064b98ad31cb22ed47bfd81e0..7e61c2bd488925b0583f55511db3f07ef6b4883c 100644 (file)
             "path": "$HOME/.git-credentials",
             "movable": true,
             "help": "XDG is supported out-of-the-box, so we can simply move the file to _$XDG_CONFIG_HOME/git/credentials_.\n"
             "path": "$HOME/.git-credentials",
             "movable": true,
             "help": "XDG is supported out-of-the-box, so we can simply move the file to _$XDG_CONFIG_HOME/git/credentials_.\n"
+        },
+        {
+            "path": "$HOME/.gitk",
+            "movable": true,
+            "help": "XDG is supported out-of-the-box, so we can simply move the file to _$XDG_CONFIG_HOME/git/gitk_.\n"
+        },
+        {
+            "path": "$HOME/.gitignore",
+            "movable": true,
+            "help": "XDG is supported out-of-the-box, so we can simply move the file to _$XDG_CONFIG_HOME/git/ignore_.\n"
         }
     ]
 }
         }
     ]
 }
index 3a23a2005d481977600014612531b9ec36c9d60f..6b39ac3424fbe858bcf681eaa4c0c915deba9e23 100644 (file)
@@ -5,6 +5,11 @@
             "path": "$HOME/.gitkraken",
             "movable": false,
             "help": "Currently unsupported.\n\n_Relevant issue:_ https://feedback.gitkraken.com/suggestions/197923/support-for-moving-the-config-directory-on-linux\n"
             "path": "$HOME/.gitkraken",
             "movable": false,
             "help": "Currently unsupported.\n\n_Relevant issue:_ https://feedback.gitkraken.com/suggestions/197923/support-for-moving-the-config-directory-on-linux\n"
+        },
+        {
+            "path": "$HOME/.gk",
+            "movable": true,
+            "help": "XDG is supported out-of-the-box, so we can simply move the file to _$XDG_DATA_HOME/gk_.\n"
         }
     ]
 }
         }
     ]
 }
index 2bf91ec635f428340904686bbecc59d801f69f1b..eac6a40f4980803fd88dc0f5555215804c2067e7 100644 (file)
@@ -3,8 +3,8 @@
     "files": [
         {
             "path": "$HOME/.php_history",
     "files": [
         {
             "path": "$HOME/.php_history",
-            "movable": false,
-            "help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/php/php-src/issues/8546\n"
+            "movable": true,
+            "help": "Support since PHP _8.4_ through the PHP_HISTFILE environment variable.\n\nExport the following environment variable:\n\n```sh\nexport PHP_HISTFILE=\"$XDG_STATE_HOME\"/php/history\n```\n"
         }
     ]
 }
         }
     ]
 }