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]

  

posted @ 2025-03-28 16:15  立冬以东  阅读(34)  评论(0)    收藏  举报