-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·73 lines (51 loc) · 1.81 KB
/
setup.sh
File metadata and controls
executable file
·73 lines (51 loc) · 1.81 KB
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
#!/bin/bash
set -e
CONFIG_DIR="$HOME/.config"
DOTFILES_DIR="$HOME/.dotfiles"
NEOVIM_DIR="/opt/nvim"
#===============================================================================
echo -e "░█▀▄░█▀█░▀█▀░█▀▀░▀█▀░█░░░█▀▀░█▀▀"
echo -e "░█░█░█░█░░█░░█▀▀░░█░░█░░░█▀▀░▀▀█"
echo -e "░▀▀░░▀▀▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀"
#===============================================================================
echo "Installing Neovim..."
if [ ! -d "$NEOVIM_DIR" ]; then
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.appimage
chmod u+x nvim-linux-x86_64.appimage
./nvim-linux-x86_64.appimage
echo "Exposing Neovim Globally..."
sudo mkdir -p /opt/nvim
sudo mv nvim-linux-x86_64.appimage /opt/nvim/nvim
echo "Sourcing Neovim..."
echo -e "Now you can officially say Neovim BTW\n"
else
echo -e "You are using Neovim BTW\n"
fi
#===============================================================================
echo "Installing Node packages..."
if [ ! -d "$NVM_DIR" ]; then
echo "Installing NVM..."
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
echo "Sourcing NVM..."
\. "$HOME/.nvm/nvm.sh"
echo "Installing NVM..."
nvm install 22
echo "Verifying Packages..."
node -v
nvm current
echo "Verifying npm..."
npm -v
echo "Enabling Corepack for pnpm..."
corepack enable pnpm
echo -e "Verifying pnpm...\n"
pnpm -v
else
echo -e "Node Packages already installed\n"
#===============================================================================
stow zsh --adopt
stow bash --adopt
stow nvim
stow fastfetch
stow tmux
stow wezterm
git restore .