From 55ce8b918519baefdfbff30745bc187afab98a1c Mon Sep 17 00:00:00 2001 From: edmz Date: Tue, 4 Feb 2025 11:49:40 -0600 Subject: [PATCH 1/2] terminfo help: adding note about copying .terminfo to /usr/share Only running `tic` with a non-privileged ssh user will result in the terminfo db only being updated for that user. Running sudo commands will not benefit from the updated database. Symlinking it or copying it to the system db resolves this. --- docs/help/terminfo.mdx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/help/terminfo.mdx b/docs/help/terminfo.mdx index 8e260a90..9c00d974 100644 --- a/docs/help/terminfo.mdx +++ b/docs/help/terminfo.mdx @@ -75,7 +75,14 @@ field as an alias` which can be safely ignored. `/usr/share/terminfo`. This location can be overridden with the `TERMINFO` environment variable. If `TERMINFO` is not set and `tic` cannot write to the system location, it will place the results in `$HOME/.terminfo` if it -exists. `man tic` for details. +exists. If the results were placed in `$HOME/.terminfo` it might be a good idea +to symlink them to the system database which might help when running `sudo`. +`man tic` for details. + +```sh +sudo ln -s $HOME/.terminfo/x/xterm-ghostty /usr/share/terminfo/x/xterm-ghostty +sudo ln -s $HOME/.terminfo/g/ghostty /usr/share/terminfo/g/ghostty +``` From aec8179e28b3d7bd693a7ad650bfc3b7cb2136c7 Mon Sep 17 00:00:00 2001 From: edmz Date: Tue, 4 Feb 2025 11:51:10 -0600 Subject: [PATCH 2/2] Update terminfo.mdx --- docs/help/terminfo.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/help/terminfo.mdx b/docs/help/terminfo.mdx index 9c00d974..4fedb72d 100644 --- a/docs/help/terminfo.mdx +++ b/docs/help/terminfo.mdx @@ -76,12 +76,12 @@ field as an alias` which can be safely ignored. environment variable. If `TERMINFO` is not set and `tic` cannot write to the system location, it will place the results in `$HOME/.terminfo` if it exists. If the results were placed in `$HOME/.terminfo` it might be a good idea -to symlink them to the system database which might help when running `sudo`. +to copy them to the system database which might help when running `sudo`. `man tic` for details. ```sh -sudo ln -s $HOME/.terminfo/x/xterm-ghostty /usr/share/terminfo/x/xterm-ghostty -sudo ln -s $HOME/.terminfo/g/ghostty /usr/share/terminfo/g/ghostty +sudo cp $HOME/.terminfo/x/xterm-ghostty /usr/share/terminfo/x/xterm-ghostty +sudo cp $HOME/.terminfo/g/ghostty /usr/share/terminfo/g/ghostty ```