Rescue Zellij from Snap

This commit is contained in:
David Heinemeier Hansson 2024-06-04 14:42:04 -07:00
parent f427a3c776
commit 67864edec2

View File

@ -1,6 +1,10 @@
if [ -n "$FORCE" ] || ! command -v zellij &>/dev/null; then cd ~/Downloads
sudo snap install zellij --classic curl -sLo zellij.tar.gz "https://github.com/zellij-org/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz"
mkdir -p ~/.config/zellij/ tar -xf zellij.tar.gz zellij
cp ~/.local/share/omakub/configs/zellij.kdl ~/.config/zellij/config.kdl sudo install zellij /usr/local/bin
ln -s ~/.local/share/omakub/themes/zellij ~/.config/zellij/themes rm zellij.tar.gz
fi cd -
mkdir -p ~/.config/zellij/
cp ~/.local/share/omakub/configs/zellij.kdl ~/.config/zellij/config.kdl
ln -s ~/.local/share/omakub/themes/zellij ~/.config/zellij/themes