-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·107 lines (84 loc) · 3.99 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/bin/bash
cat << "EOF"
, ,
/( )`
\ \___ / |
/- _ `-/ '
(/\/ \ \ /\
/ / | ` \
O O ) / |
`-^--'`< '
TM (_.) _ ) /
| | |\ | ~|~ \ / `.___/` /
| | | \ | | X `-----' /
`__| | \| _|_ / \ <----. __ / __ \
<----|====O)))==) \) /====
<----' `--' `.__,' \
| |
\ /
______( (_ / \______
,' ,-----' | \
`--{__________) \/
____ _ _ _
/ ___| ___| |_| |_(_)_ __ __ _ _ _ _ __
\___ \ / _ \ __| __| | '_ \ / _` | | | | | '_ \
___) | __/ |_| |_| | | | | (_| | | |_| | |_) |
|____/ \___|\__|\__|_|_| |_|\__, | \__,_| .__/
___ _ _ ___| |_ ___ _ __ |___/ |_|
/ __| | | / __| __/ _ \ '_ ` _ \
\__ \ |_| \__ \ || __/ | | | | |
|___/\__, |___/\__\___|_| |_| |_|
|___/
EOF
logger() {
echo "[+] $1"
}
logger "Running update of system"
sudo dnf update -qy
logger "Installing kitty"
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin \
launch=n
ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/
cp -r ./.config/kitty ~/.config/kitty
logger "Installing zsh"
sudo dnf install zsh -qy
cp ./.zshrc ~/.zshrc
logger "Installing oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
logger "Installing zsh-syntax-highlightning"
git clone -q https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
logger "Installing zsh-autosuggestions"
git clone -q https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
logger "Installing nvm, node, and npm"
curl --silent -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash &>/dev/null
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install --lts &>/dev/null
nvm use --lts &>/dev/null
logger "Installing python3.8"
sudo dnf install python3.8 -qy
logger "Installing dotnet"
sudo dnf install dotnet-sdk-8.0 -qy
logger "Installing pwsh"
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
curl --silent https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo
sudo dnf update -qy
sudo dnf install powershell -qy
logger "Installing az cli"
sudo dnf install -qy azure-cli
logger "Installing neovim and setting upp config"
sudo dnf install -qy neovim python3-neovim
cp -r ./.config/nvim ~/.config/nvim
logger "Installing 1password"
sudo rpm --import https://downloads.1password.com/linux/keys/1password.asc &>/dev/null
sudo sh -c 'echo -e "[1password]\nname=1Password Stable Channel\nbaseurl=https://downloads.1password.com/linux/rpm/stable/\$basearch\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=\"https://downloads.1password.com/linux/keys/1password.asc\"" > /etc/yum.repos.d/1password.repo'
sudo dnf install 1password -qy
logger "Installing zoxide"
sudo dnf install zoxide -qy
logger "Installing video codecs"
sudo dnf group install Multimedia -qy
sudo dnf install @multimedia @sound-and-video ffmpeg-libs gstreamer1-plugins-{bad-*,good-*,base} gstreamer1-plugin-openh264 gstreamer1-libav lame* -qy
logger "Printing store apps to download"
echo "You should now install virtmanager"
echo "You should now install teams-for-linux"
echo "You should now install spotify"