feat(zsh): add Atuin integration and new gitconfig script
This commit is contained in:
47
scripts/install
Executable file
47
scripts/install
Executable file
@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
git config core.autocrlf false
|
||||
|
||||
APT_CMD="apt"
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
APT_CMD="sudo apt"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "[+] Updating System Packages..."
|
||||
echo
|
||||
$APT_CMD update -qq
|
||||
|
||||
echo
|
||||
echo "[+] Installing Dependencies..."
|
||||
echo
|
||||
$APT_CMD install -yqq \
|
||||
zsh \
|
||||
curl \
|
||||
exa \
|
||||
direnv \
|
||||
bat \
|
||||
btop \
|
||||
stow \
|
||||
tmux \
|
||||
dos2unix
|
||||
|
||||
if [ ! -d "$HOME/.oh-my-zsh" ]; then
|
||||
echo
|
||||
echo "[+] Installing Oh My Zsh..."
|
||||
echo
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
fi
|
||||
|
||||
if [ -f "$HOME/.zshrc" ] && [ ! -L "$HOME/.zshrc" ]; then
|
||||
rm "$HOME/.zshrc"
|
||||
fi
|
||||
|
||||
mkdir -p "$HOME/.ssh"
|
||||
echo "Include $HOME/.config/ssh/*" >> "$HOME/.ssh/config"
|
||||
|
||||
cp post-merge .git/hooks/
|
||||
|
||||
./setup
|
Reference in New Issue
Block a user