]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
fix various typos in rules, documentation and program (#158)
authorccoVeille <3875889+ccoVeille@users.noreply.github.com>
Mon, 8 Aug 2022 05:00:09 +0000 (07:00 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Aug 2022 05:00:09 +0000 (07:00 +0200)
README.md
lib/AddProgram.hs
lib/Prompts.hs
programs/bm.json
programs/dosbox.json
programs/gdb.json
programs/gef.json
programs/virtualbox.json
programs/xscreensaver.json

index 68fa299b55fb25ed6d25f34974e22e397bbb1901..a86b9c7a175e47d7b9602d63dc70cd0679250114 100644 (file)
--- a/README.md
+++ b/README.md
@@ -108,4 +108,4 @@ Now, we can assemble our final json file:
 
 Saving this as _git.json_ in the _programs/_ directory will result in the script picking it up and checking the file.
 
-If you've created a configuration for a file that isn't in the offical repository yet, make sure to create a pull request so that other people can benefit from it as well.
+If you've created a configuration for a file that isn't in the official repository yet, make sure to create a pull request so that other people can benefit from it as well.
index 13f7304c30441d4bdc0e1c1159a009a0d650e0dc..dbfb0be99df51a51450286cf30c2bbe832576426 100644 (file)
@@ -78,7 +78,7 @@ getProgram = do
           >> getProp (yellow "Program name: ") ""
   files <- printf "%s\n" (T.unpack (faint (italic (cyan "Alright, now let's configure which files belong to this program."))))
            >> printf "%s\n" (T.unpack (faint (italic (cyan "I'm going to ask you for the path to the file, please use $HOME instead of ~."))))
-           >> printf "%s\n" (T.unpack (faint (italic (cyan "I'll then ask you wether or not this file can be moved to a different directory."))))
+           >> printf "%s\n" (T.unpack (faint (italic (cyan "I'll then ask you whether or not this file can be moved to a different directory."))))
            >> printf "%s\n" (T.unpack (faint (italic (cyan "Finally, your editor is going to open a markdown document. Enter instructions on moving the file in question, then save and close."))))
            >> getFiles []
   return Program {name = T.pack name, files = files}
index 689f203d3897ee06237228eb670fce141dea5767..50ef892722d9b1c9fc1bba9e0d8dcc5ad5ffca10 100644 (file)
@@ -24,8 +24,8 @@ getInputMarkdown placeholder = do
 getProp :: T.Text -> T.Text -> IO String
 getProp prompt placeholder = do
   let string_prompt = T.unpack prompt
-  let string_placholder = T.unpack placeholder
-  x <- runInputT defaultSettings (getInputLineWithInitial string_prompt (string_placholder, ""))
+  let string_placeholder = T.unpack placeholder
+  x <- runInputT defaultSettings (getInputLineWithInitial string_prompt (string_placeholder, ""))
   case x of
     Just s  -> return s
     Nothing -> return ""
index e40dc6992b487fad575b86ca04216831a88b3b82..de0b46487329ea8b73905594ab7bbd32fbeeda3d 100644 (file)
@@ -1,7 +1,7 @@
 {
     "files": [
         {
-            "help": "Currently unsupported. Harcoded value.\n",
+            "help": "Currently unsupported. Hardcoded value.\n",
             "movable": false,
             "path": "$HOME/.sdirs"
         }
index 993002390d9cad67a95fb24d93b3c4c0231c04e2..c2d0732ba8a100b3915e991bf803bc3f77af2b00 100644 (file)
@@ -3,7 +3,7 @@
         {
             "path": "$HOME/.dosbox",
             "movable": true,
-            "help": "Alias dosbox to use a custom configuration locaion:\n\n```bash\nalias dosbox=dosbox -conf \"$XDG_CONFIG_HOME\"/dosbox/dosbox.conf\n```\n\n_Move $HOME/.dosbox/dosbox-0.74-2.conf to $XDG_CONFIG_HOME/dosbox/dosbox.conf._\n"
+            "help": "Alias dosbox to use a custom configuration location:\n\n```bash\nalias dosbox=dosbox -conf \"$XDG_CONFIG_HOME\"/dosbox/dosbox.conf\n```\n\n_Move $HOME/.dosbox/dosbox-0.74-2.conf to $XDG_CONFIG_HOME/dosbox/dosbox.conf._\n"
         }
     ],
     "name": "dosbox"
index ce4866c8abb3ce6057fe0f1c11d775db0c792b31..11fee1c24878a35a54b5dd67e4325922b8009a3f 100644 (file)
@@ -9,7 +9,7 @@
         {
             "path": "$HOME/.gdb_history",
             "movable": true,
-            "help": "GDB supports setting it's config file path through an environment variable. Simply move your _.gdb_history_ file to _XDG_CONFIG_HOME/gdb_ and export the follwing:\n\n```bash\nexport GDBHISTFILE=\"$XDG_CONFIG_HOME\"/gdb/.gdb_history \n```\n\nNote: If you are using GEF this does not work, as GEF overwrites the filepath. In order to use the correct path again, you have to call ```set history filename ~/.config/gdb/.gdb_history``` after you source _gef.py_ in your gdb init file.\n"
+            "help": "GDB supports setting it's config file path through an environment variable. Simply move your _.gdb_history_ file to _XDG_CONFIG_HOME/gdb_ and export the following:\n\n```bash\nexport GDBHISTFILE=\"$XDG_CONFIG_HOME\"/gdb/.gdb_history \n```\n\nNote: If you are using GEF this does not work, as GEF overwrites the filepath. In order to use the correct path again, you have to call ```set history filename ~/.config/gdb/.gdb_history``` after you source _gef.py_ in your gdb init file.\n"
         }
     ]
 }
index 40f871b00ba63053688b74b60993dea0af2a3b09..a9cd31d8af89596303a9c1d85a54df79c687dd9d 100644 (file)
@@ -4,7 +4,7 @@
         {
             "path": "$HOME/.gef.rc",
             "movable": true,
-            "help": "GEF supports setting it's config file path through an environment variable. Simply move your _.gef.rc_ file to _XDG_CONFIG_HOME/gef_ and export the follwing:\n\n```bash\nexport GEF_RC=\"$XDG_CONFIG_HOME\"/gef/.gef.rc \n```\n"
+            "help": "GEF supports setting it's config file path through an environment variable. Simply move your _.gef.rc_ file to _XDG_CONFIG_HOME/gef_ and export the following:\n\n```bash\nexport GEF_RC=\"$XDG_CONFIG_HOME\"/gef/.gef.rc \n```\n"
         }
     ]
 }
index ceefc2c366d81f1164f16c40ce75ffa0a5d7e81a..b8b7ab61000a5fa19f72d41d06645697eae46f93 100644 (file)
@@ -1,10 +1,10 @@
 {
     "files": [
         {
-            "help": "Supported since _4.3_.\n\nYou can move the file to _XDG_DATA_HOME/virtualbox_.\n\nGo in the settings of the GUI and change the default location.\n\nBe carefull, that might break existing images and changing the path to their respective files is not straight forward.\n",
+            "help": "Supported since _4.3_.\n\nYou can move the file to _XDG_DATA_HOME/virtualbox_.\n\nGo in the settings of the GUI and change the default location.\n\nBe careful, that might break existing images and changing the path to their respective files is not straight forward.\n",
             "movable": true,
             "path": "$HOME/.VirtualBox"
         }
     ],
     "name": "virtualbox"
-}
\ No newline at end of file
+}
index d8ea332f1fbce29a4e8590b19011d18e7dd112d0..e422cd0e1ff121bfc518241f973759d6624ef2d3 100644 (file)
@@ -1,10 +1,10 @@
 {
     "files": [
         {
-            "help": "Currently unsupported. Not enought information.\n",
+            "help": "Currently unsupported. Not enough information.\n",
             "movable": false,
             "path": "$HOME/.xscreensaver"
         }
     ],
     "name": "xscreensaver"
-}
\ No newline at end of file
+}