add unroot mode: install tmux

This commit is contained in:
Yuan Chiu 2025-06-02 03:20:24 +08:00
parent a718e133ff
commit 8fe6fbd621
Signed by: yuan
GPG Key ID: 50FBE4156404B98D

View File

@ -13,6 +13,19 @@ if ! command -v zsh &> /dev/null; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/romkatv/zsh-bin/master/install)" -- -d ~/.local -e no
fi
{{/* 手動安裝 tmux */ -}}
if ! command -v tmux &> /dev/null; then
curl -s https://api.github.com/repos/nelsonenzo/tmux-appimage/releases/latest \
| grep "browser_download_url.*appimage" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi - \
&& chmod +x tmux.appimage
## optionaly, move it into your $PATH
mv tmux.appimage ~/.local/bin/tmux
fi
{{/* 手動安裝 neovim 0.11.1 */ -}}
{{ if eq .chezmoi.arch "amd64"}}
if ! command -v nvim &> /dev/null; then