From 9cebaacc26bea7c28c167e065cc7418630875a2f Mon Sep 17 00:00:00 2001 From: fumnanya <87488715+poopsicles@users.noreply.github.com> Date: Sun, 12 Nov 2023 00:40:05 +0100 Subject: [PATCH 1/2] added env-var stuff --- README.md | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/README.md b/README.md index edd0063..addb135 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,85 @@ So if you set `CARGO_MOMMYS_ROLES="daddy"`, `CARGO_MOMMYS_PRONOUNS="his/their"`, And so on~ 💓 +
+ + +OS-specific information: + + +### For macOS, Linux, BSD (or any sufficiently Unix-like operating system) + +You're probably using zsh or bash as your login shell, to check - open up a terminal window (Terminal.app or iTerm2 on macOS; Console, Terminal, Konsole, Kitty, or Alacritty most likely anywhere else) and run `echo $SHELL`. + +You can see all of your current settings by running `export -p | grep CARGO_MOMMY`. + +Depending on the one you have, you'll have to modify the contents of your rcfile (with vi, nano, micro, hx etc.), or create one if it doesn't exist. + +- Bash: + Change ~/.bashrc to include your settings. Set them with `export VAR_NAME=value`, for example: + + ```sh + $ cat ~/.bashrc + + export CARGO_MOMMYS_LITTLE="boy" + export CARGO_MOMMYS_ROLES="daddy" + export CARGO_MOMMYS_PRONOUNS="his" + export CARGO_MOMMYS_MOODS="yikes" + ``` + +- Zsh: + Change ~/.zshrc. Set them with `export VAR_NAME=value`, for example: + + ```sh + $ cat ~/.zshrc + + export CARGO_MOMMYS_LITTLE="girlie" + export CARGO_MOMMYS_ROLES="momma" + export CARGO_MOMMYS_PRONOUNS="her/their" + export CARGO_MOMMYS_MOODS="chill/thirsty" + ``` + +To remove any of the settings, simply remove the associated line in the file. + +### For our dear Windows friends: + +To check which settings you're currently using, open a Command Prompt or Powershell window (a quick way to do this is to press `Windows` + `X` on your keyboard), and type: + +- For Command Prompt: + + ```sh + set | find "CARGO_MOMMY" + ``` + +- For Powershell (now might be a good time to learn the difference between Windows `powershell.exe` and Microsoft `pwsh.exe`): + + ```powershell + Get-Item Env:\CARGO_MOMMY* + ``` + +It's simultaneously easier and harder to set environment variables on Windows - soo many ways are available, but the easiest are: + +- You can use the Control Panel by: + 1. Going to Start, + 2. Searching "path" and clicking the "Edit the system environment variables" option, + 3. Then "Environment Variables", + 4. And finally, "New" (or whichever button is appropriate) under the "User" section (the top one). + +- If you happen to have modern Powershell (that's anything with the Microsoft branding/black logo/version 7+), you can run: + + ```powershell + [Environment]::SetEnvironmentVariable("VAR_NAME", "value", "User") + ``` + + to add one, and: + + ```powershell + [Environment]::SetEnvironmentVariable("VAR_NAME", "", "User") + ``` + + to remove it (by setting it to an empty string). + +
# Configuration (kink) From 67c34a8fefe5d3ba772a3da7147eeb18f65aac98 Mon Sep 17 00:00:00 2001 From: fumnanya <87488715+poopsicles@users.noreply.github.com> Date: Sun, 12 Nov 2023 00:50:35 +0100 Subject: [PATCH 2/2] slight formatting changes --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index addb135..9cccab0 100644 --- a/README.md +++ b/README.md @@ -74,14 +74,14 @@ OS-specific information: ### For macOS, Linux, BSD (or any sufficiently Unix-like operating system) -You're probably using zsh or bash as your login shell, to check - open up a terminal window (Terminal.app or iTerm2 on macOS; Console, Terminal, Konsole, Kitty, or Alacritty most likely anywhere else) and run `echo $SHELL`. +You're probably using [Zsh](https://zsh.sourceforge.io/) or [Bash](https://www.gnu.org/software/bash/) as your login shell, to check - open up a terminal window (Terminal.app or [iTerm2](https://github.com/gnachman/iTerm2) on macOS; [Console](https://gitlab.gnome.org/GNOME/console), [Terminal](https://gitlab.gnome.org/GNOME/gnome-terminal), [Konsole](https://github.com/KDE/konsole), [Kitty](https://github.com/kovidgoyal/kitty), or [Alacritty](https://github.com/alacritty/alacritty) most likely anywhere else) and run `echo $SHELL`. You can see all of your current settings by running `export -p | grep CARGO_MOMMY`. -Depending on the one you have, you'll have to modify the contents of your rcfile (with vi, nano, micro, hx etc.), or create one if it doesn't exist. +Depending on the one you have, you'll have to modify the contents of your rcfile (with [vim](https://github.com/vim/vim), [nano](https://nano-editor.org/), [helix](https://github.com/helix-editor/helix) etc.), or create one if it doesn't exist. - Bash: - Change ~/.bashrc to include your settings. Set them with `export VAR_NAME=value`, for example: + Change `~/.bashrc` to include your settings. Set them with `export VAR_NAME=value`, for example: ```sh $ cat ~/.bashrc @@ -93,10 +93,10 @@ Depending on the one you have, you'll have to modify the contents of your rcfile ``` - Zsh: - Change ~/.zshrc. Set them with `export VAR_NAME=value`, for example: + Change `~/.zshenv`. Set them with `export VAR_NAME=value`, for example: ```sh - $ cat ~/.zshrc + $ cat ~/.zshenv export CARGO_MOMMYS_LITTLE="girlie" export CARGO_MOMMYS_ROLES="momma" @@ -104,7 +104,7 @@ Depending on the one you have, you'll have to modify the contents of your rcfile export CARGO_MOMMYS_MOODS="chill/thirsty" ``` -To remove any of the settings, simply remove the associated line in the file. +To remove any of the settings, simply delete the associated line in the file. ### For our dear Windows friends: @@ -113,13 +113,13 @@ To check which settings you're currently using, open a Command Prompt or Powersh - For Command Prompt: ```sh - set | find "CARGO_MOMMY" + > set | find "CARGO_MOMMY" ``` - For Powershell (now might be a good time to learn the difference between Windows `powershell.exe` and Microsoft `pwsh.exe`): ```powershell - Get-Item Env:\CARGO_MOMMY* + > Get-Item Env:\CARGO_MOMMY* ``` It's simultaneously easier and harder to set environment variables on Windows - soo many ways are available, but the easiest are: @@ -133,13 +133,13 @@ It's simultaneously easier and harder to set environment variables on Windows - - If you happen to have modern Powershell (that's anything with the Microsoft branding/black logo/version 7+), you can run: ```powershell - [Environment]::SetEnvironmentVariable("VAR_NAME", "value", "User") + > [Environment]::SetEnvironmentVariable("VAR_NAME", "value", "User") ``` to add one, and: ```powershell - [Environment]::SetEnvironmentVariable("VAR_NAME", "", "User") + > [Environment]::SetEnvironmentVariable("VAR_NAME", "", "User") ``` to remove it (by setting it to an empty string).