From dd957797d8ed953bcb634bf336aa3f52855f7f68 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Mon, 26 Jan 2026 10:43:06 +0800 Subject: initialize .tldrrc - do not update the tldr database when the command help page does not exist locally - prefer manual update for the data --- .tldrrc | 3 +++ .zshrc | 1 + setup.sh | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 .tldrrc diff --git a/.tldrrc b/.tldrrc new file mode 100644 index 0000000..fcd5628 --- /dev/null +++ b/.tldrrc @@ -0,0 +1,3 @@ +{ + "skipUpdateWhenPageNotFound": true +} diff --git a/.zshrc b/.zshrc index 63423ac..515802a 100644 --- a/.zshrc +++ b/.zshrc @@ -27,6 +27,7 @@ alias gpull='git pull' alias dotfiles='cd ~/.dotfiles' alias dl='cd ~/Downloads' alias update='brew update && brew upgrade && brew autoremove && brew cleanup' +alias help='tldr' # Node version manager export NVM_DIR="$HOME/.nvm" diff --git a/setup.sh b/setup.sh index 117861b..1d91bc9 100755 --- a/setup.sh +++ b/setup.sh @@ -55,6 +55,9 @@ if [ ! -e "$HOME/.newsboat" ]; then ln -s "$dotfiles/.newsboat" "$HOME/.newsboat" fi +# Publish config of tldr +[ -e "$HOME/.tldrrc" ] || ln -s "$dotfiles/.tldrrc" "$HOME/.tldrrc" + # Install verion manager for node.js curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash -- cgit v1.2.3