some changes idk

This commit is contained in:
mattr
2024-10-23 17:42:21 -05:00
parent b3766e5b78
commit 61afd18f36
4 changed files with 45 additions and 13 deletions

View File

@@ -1,5 +1,26 @@
#!/bin/bash
clicmd="zsh"
if command -v "$clicmd"&> /dev/null; then
echo "$clicmd already installed"
else
sudo dnf install "$clicmd" -y
fi
clicmd="tmux"
if command -v "$clicmd" &> /dev/null; then
echo "$clicmd already installed"
else
sudo dnf install "$clicmd" -y
fi
clicmd="nvim"
if command -v "$clicmd" &> /dev/null; then
echo "$clicmd already installed"
else
sudo dnf install "neovim" -y
fi
CONFIGDIR=$HOME/.config
#############################
@@ -11,15 +32,23 @@ if [ -f "$ZSHFILE" ] || [ -d "$ZSHFILE" ]; then
mv "$ZSHFILE" "$ZSHFILE.old"
fi
ln -s "$PWD/zsh/.zshrc" "$ZSHFILE"
ln -s "$PWD/zsh/.zshrc" "$ZSHFILE"
POSHDIR="$HOME/.config/ohmyposh"
if [ -f "$POSHDIR" ] || [ -d "$POSHDIR"]; then
if [ -f "$POSHDIR" ] || [ -d "$POSHDIR" ]; then
mv "$POSHDIR" "$POSHDIR.old"
fi
ln -s "$PWD/zsh/ohmyposh/" "$POSHDIR"
OMZDIR="$HOME/.oh-my-zsh"
if [ -e "$OMZDIR" ]; then
git clone --depth 1 https://github.com/ohmyzsh/ohmyzsh
git clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone --depth 1 https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
fi
#############################
# kitty
#############################
@@ -29,7 +58,7 @@ if [ -f "$KITTYDIR" ] || [ -d "$KITTYDIR" ]; then
mv "$KITTYDIR" "$KITTYDIR.old"
fi
ln -s "$PWD/kitty/" "$KITTYDIR"
ln -s "$PWD/kitty/" "$KITTYDIR"
#############################
# neovim
@@ -40,7 +69,7 @@ if [ -f "$NEOVIMFILE" ] || [ -d "$NEOVIMFILE" ]; then
mv "$NEOVIMFILE" "$NEOVIMFILE.old"
fi
ln -s "$PWD/nvim/" "$NEOVIMFILE"
ln -s "$PWD/nvim/" "$NEOVIMFILE"
#############################
# tmux
@@ -53,4 +82,4 @@ fi
git clone https://github.com/tmux-plugins/tpm ./tmux/plugins/tpm
ln -s "$PWD/tmux/" "$TMUXFILE"
ln -s "$PWD/tmux/" "$TMUXFILE"