Skip to content

Commit

Permalink
Cleaup installation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Aug 31, 2024
1 parent 759c66e commit 6002d76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dev-rust:
fish -c 'source ~/myconfigs/fish/conf.d/installs.fish && install-rust-lsp'

dev-cpp:
fish -c 'source ~/myconfigs/fish/conf.d/installs.fish && install-cpp-lsp && install-cpp-analyzers'
fish -c 'source ~/myconfigs/fish/conf.d/installs.fish && install-cpp-lsp'

dev-xml:
fish -c 'source ~/myconfigs/fish/conf.d/installs.fish && install-xml-lsp'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ make host # Host specific configs
make dev
```

- Install tailscale: https://tailscale.com/download
- Install tailscale: [tailscale](https://tailscale.com/download)
- Install Obsidian: `install-obsidian`
- Install NextCloud: `install-nextcloud-sync`
14 changes: 4 additions & 10 deletions fish/conf.d/installs.fish
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ function install-luacheck
end
function install-markdown-lsp
install-from-github artempyanykh/marksman marksman-linux
chmod +x marksman-linux
mv marksman-linux ~/.local/bin/marksman
install-from-github artempyanykh/marksman marksman-linux-x64
chmod +x marksman-linux-x64
mv marksman-linux-x64 ~/.local/bin/marksman
end
function install-cpp-analyzers
Expand Down Expand Up @@ -611,13 +611,7 @@ function install-docker
# It uses the latest stable version, there's release for sid
# https://docs.docker.com/engine/install/debian/
# https://nickjanetakis.com/blog/docker-tip-77-installing-docker-on-debian-unstable
if ! command -q nvidia-docker &> /dev/null
export distribution=(export (cat /etc/os-release |xargs -L 1);echo $ID$VERSION_ID) \
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install -y nvidia-docker2
end
echo "To install nvidia-docker follow: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installation"
sudo systemctl restart docker
wget https://raw.githubusercontent.com/docker/cli/master/contrib/completion/fish/docker.fish -O ~/.config/fish/completions/docker.fish
wget https://raw.githubusercontent.com/docker/compose/master/contrib/completion/fish/docker-compose.fish -O ~/.config/fish/completions/docker-compose.fish
Expand Down

0 comments on commit 6002d76

Please sign in to comment.