mirror of
https://github.com/mqttr/dotfiles.git
synced 2025-12-15 04:25:50 -06:00
some changes idk
This commit is contained in:
39
BOOTSTRAP.sh
39
BOOTSTRAP.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user