added curl and gh installation

This commit is contained in:
2023-11-07 16:23:24 +00:00
parent 62a07ad4bb
commit 0e6991a129

9
vk
View File

@@ -1,5 +1,14 @@
#!/bin/bash #!/bin/bash
sudo apt install curl
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
STTY_PRESENT=$(grep "stty -ixon" ~/.bashrc) STTY_PRESENT=$(grep "stty -ixon" ~/.bashrc)
BIND_PRESENT=$(grep "bind -r '\\\C-s'" ~/.bashrc) BIND_PRESENT=$(grep "bind -r '\\\C-s'" ~/.bashrc)