Display macOS tips.txt in any terminal.
dblume

dblume commited on 2025-01-14 15:47:55
Showing 1 changed files, with 1 additions and 1 deletions.


I use both iTerm2 and Ghostty, but the same tips.txt file applies
to both. (Which keys make splits, navigate them, and expand them.)

+-------------------------------+
|  opt-cmd-←    |               |
|             cmd-d             |
|               |               |
+----------cmd-shift-d----------+
| cmd-shift-enter = full screen |
+-------------------------------+
... ...
@@ -11,7 +11,7 @@ if [ -f "${HOME}/.bashrc" ]; then
11 11
     source "${HOME}/.bashrc"
12 12
 fi
13 13
 if [[ $(uname -s) == Darwin* ]]; then
14
-    if [[ -n $ITERM_PROFILE && -z $SSH_CLIENT && -f "${HOME}/tips.txt" ]]; then
14
+    if [[ -z $SSH_CLIENT && -f "${HOME}/tips.txt" ]]; then
15 15
         cat "${HOME}/tips.txt"
16 16
     fi
17 17
     if [[ -n $CDPATH && -f $HOMEBREW_PREFIX/etc/bash_completion ]]; then
18 18