added $HOME instead of ~

This commit is contained in:
radumacocian
2024-08-18 21:22:09 +02:00
parent 61c1b611aa
commit 1f719d9052
2 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
echo "----- Cloning homefull-api -----" echo "----- Cloning homefull-api -----"
if [ -d "~projects/homefull-api" ]; then if [ -d "$HOME/projects/homefull-api" ]; then
echo "[Skipped] homefull-api already exists" echo "[Skipped] homefull-api already exists"
else else
git clone https://github.com/macocianradu/homefull-api.git\ git clone https://github.com/macocianradu/homefull-api.git\
@@ -9,7 +9,7 @@ else
fi fi
echo "----- Cloning homefull-gui -----" echo "----- Cloning homefull-gui -----"
if [ -d "~projects/homefull-gui" ]; then if [ -d "$HOME/projects/homefull-gui" ]; then
echo "[Skipped] homefull-gui already exists" echo "[Skipped] homefull-gui already exists"
else else
git clone https://github.com/macocianradu/homefull-gui.git\ git clone https://github.com/macocianradu/homefull-gui.git\
@@ -17,7 +17,7 @@ else
fi fi
echo "----- Cloning packer -----" echo "----- Cloning packer -----"
if [ -d "~/.local/share/nvim/site/pack/packer/start/packer.nvim" ]; then if [ -d "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" ]; then
echo "[Skipped] Packer already exists" echo "[Skipped] Packer already exists"
else else
git clone --depth 1 https://github.com/wbthomason/packer.nvim\ git clone --depth 1 https://github.com/wbthomason/packer.nvim\
@@ -30,7 +30,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
tar xzf nvim-linux64.tar.gz tar xzf nvim-linux64.tar.gz
usr/ usr/
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then
if [ -d "~Applications/nvim" ]; then if [ -d "$HOME/Applications/nvim" ]; then
echo "[Skipped] NVIM already installed" echo "[Skipped] NVIM already installed"
else else
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-arm64.tar.gz curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-arm64.tar.gz
@@ -40,14 +40,14 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
fi fi
echo "----- Copying NVIM configuration -----" echo "----- Copying NVIM configuration -----"
if [ ! -d "~/.config" ]; then if [ ! -d "$HOME/.config" ]; then
echo ".config folder not found. Creating one" echo ".config folder not found. Creating one"
mkdir ~/.confg mkdir ~/.config
fi fi
ln -s ~/projects/setup/.config/nvim ~/.config/nvim ln -s ~/projects/setup/.config/nvim ~/.config/nvim
if [ ! -d "~/.vim" ]; then if [ ! -d "$HOME/.vim" ]; then
echo ".vim folder not found. Creating one" echo ".vim folder not found. Creating one"
mkdir ~/.confg mkdir ~/.vim
fi fi
ln -s ~/projects/setup/.vim/undodir ~/.vim/undodir ln -s ~/projects/setup/.vim/undodir ~/.vim/undodir