Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Show the line that makes zsh read Peel's file

Țugui Dragoș439acf0d7006
diff --git a/TERMINAL.md b/TERMINAL.md
index 7c02e270..a914d411 100644
--- a/TERMINAL.md
+++ b/TERMINAL.md
@@ -113,13 +113,20 @@ Every setting on these tabs is one that zsh, Git, or ssh already has, and each h
own files:
- **zsh** reads Peel's settings from a file of Peel's own, `~/Library/Application Support/Peel/Terminal/zshrc`, once
- you add one line to `~/.zshrc`. The Shell tab gives a command that adds it at the end. If you load tools such as
- fzf-tab there, move the line above them, since their settings have to come after Peel's.
+ you add the line below to `~/.zshrc`. The Shell tab gives a command that adds it at the end. If you load tools
+ such as fzf-tab there, move Peel's line above theirs, since their settings have to come after Peel's;
+ zsh-syntax-highlighting's line stays the very last.
- **ssh** reads them from `~/Library/Application Support/Peel/Terminal/ssh_config`, once you add two lines at the end
of `~/.ssh/config`. What you set for a server earlier in that file stays in force, since ssh uses the first value
it finds.
- **Git**'s are changed with `git config --global`, Git's own command, and turning one off puts back what you had.
+The line that makes zsh read Peel's file:
+
+```zsh
+[[ -r "$HOME/Library/Application Support/Peel/Terminal/zshrc" ]] && source "$HOME/Library/Application Support/Peel/Terminal/zshrc"
+```
+
Peel offers a setting only when the zsh, Git, or ssh on your Mac knows it, and Turn All Off on each tab undoes what
Peel set there. Without Peel, add the lines below to `~/.zshrc` or `~/.ssh/config` yourself, or run the `git config`
commands.