mirror of
https://github.com/mqttr/dotfiles.git
synced 2025-12-12 19:25:51 -06:00
79 lines
1.8 KiB
Bash
Executable File
79 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
sudo dnf install vlc kdenlive x264 x264-devel x246-libs neovim zsh-syntax-highlighting -y
|
|
for cmd in "zsh" "git" "tmux" "kitty" "go" "bat"; do
|
|
if command -v "$cmd"&> /dev/null; then
|
|
echo "$clicmd already installed"
|
|
else
|
|
sudo dnf install "$clicmd" -y
|
|
fi
|
|
done
|
|
|
|
CONFIGDIR=$HOME/.config
|
|
|
|
#############################
|
|
# zsh
|
|
#############################
|
|
|
|
ZSHFILE="$HOME/.zshrc"
|
|
if [ -f "$ZSHFILE" ] || [ -d "$ZSHFILE" ]; then
|
|
mv "$ZSHFILE" "$ZSHFILE.old"
|
|
fi
|
|
|
|
ln -s "$PWD/zsh/.zshrc" "$ZSHFILE"
|
|
|
|
POSHDIR="$HOME/.config/ohmyposh"
|
|
if [ -f "$POSHDIR" ] || [ -d "$POSHDIR" ]; then
|
|
mv "$POSHDIR" "$POSHDIR.old"
|
|
fi
|
|
|
|
ln -s "$PWD/zsh/ohmyposh/" "$POSHDIR"
|
|
|
|
echo "Setting up oh-my-zsh"
|
|
|
|
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
|
|
#############################
|
|
|
|
KITTYDIR="$CONFIGDIR/kitty"
|
|
if [ -f "$KITTYDIR" ] || [ -d "$KITTYDIR" ]; then
|
|
mv "$KITTYDIR" "$KITTYDIR.old"
|
|
fi
|
|
|
|
ln -s "$PWD/kitty/" "$KITTYDIR"
|
|
|
|
#############################
|
|
# neovim
|
|
#############################
|
|
|
|
NEOVIMFILE="$CONFIGDIR/nvim"
|
|
if [ -f "$NEOVIMFILE" ] || [ -d "$NEOVIMFILE" ]; then
|
|
mv "$NEOVIMFILE" "$NEOVIMFILE.old"
|
|
fi
|
|
|
|
ln -s "$PWD/nvim/" "$NEOVIMFILE"
|
|
|
|
#############################
|
|
# tmux
|
|
#############################
|
|
|
|
TMUXFILE="$CONFIGDIR/tmux"
|
|
if [ -f "$TMUXFILE" ] || [ -d "$TMUXFILE" ]; then
|
|
mv "$TMUXFILE" "$TMUXFILE.old"
|
|
fi
|
|
|
|
git clone https://github.com/tmux-plugins/tpm ./tmux/plugins/tpm
|
|
|
|
ln -s "$PWD/tmux/" "$TMUXFILE"
|
|
|
|
echo "done with initialization"
|
|
|