shpool安装和使用
先安装rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
根据https://github.com/shell-pool/shpool,安装shpool:
cargo install shpool
curl -fLo "${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user/shpool.service" --create-dirs https://raw.githubusercontent.com/shell-pool/shpool/master/systemd/shpool.service
sed -i "s|/usr|$HOME/.cargo|" "${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user/shpool.service"
curl -fLo "${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user/shpool.socket" --create-dirs https://raw.githubusercontent.com/shell-pool/shpool/master/systemd/shpool.socket
systemctl --user enable shpool
systemctl --user start shpool
loginctl enable-linger
基础用法:
shpool attach [NAME] shpool detach [NAME]

浙公网安备 33010602011771号