Replace tmux with kitty
- setup.sh: install kitty instead of tmux, fix clone URL - .bashrc: remove tmux auto-start, add kitty SSH alias - .tmux.conf: removed - README.md: update to kitty documentation
This commit is contained in:
20
setup.sh
20
setup.sh
@@ -19,21 +19,18 @@ done
|
||||
echo ">>> Bootstrapping new Debian-like machine..."
|
||||
|
||||
# 1. Update package list and install essentials
|
||||
echo ">>> Installing bash, tmux, and vim..."
|
||||
echo ">>> Installing bash, kitty, and vim..."
|
||||
sudo apt update
|
||||
# Remove minimal vim if installed, then install clipboard-enabled version
|
||||
sudo apt remove -y vim || true
|
||||
sudo apt install -y bash tmux vim-gtk3 git curl
|
||||
sudo apt install -y bash kitty vim-gtk3 git curl
|
||||
|
||||
# 2. Clone your dotfiles (bare repo style)
|
||||
if [ ! -d "$HOME/.dotfiles" ]; then
|
||||
echo ">>> Cloning dotfiles repo..."
|
||||
git clone --bare https://gitea.james-server.duckdns.org/james/dotfiles $HOME/.dotfiles
|
||||
git clone --bare https://gitea.sjhl.nz/james/dotfiles $HOME/.dotfiles
|
||||
else
|
||||
echo ">>> Dotfiles repo already exists."
|
||||
fi
|
||||
|
||||
|
||||
# 3. Checkout dotfiles
|
||||
dotfiles() {
|
||||
/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" "$@"
|
||||
@@ -43,7 +40,6 @@ if ! dotfiles checkout; then
|
||||
echo ">>> Conflicts detected! Handling conflicting dotfiles..."
|
||||
mkdir -p "$HOME/.dotfiles-backup"
|
||||
|
||||
# Gather conflicts (paths with spaces supported)
|
||||
conflicts=$(dotfiles checkout 2>&1 | grep -E "\s+\." | awk '{print $1}')
|
||||
if [ -n "$conflicts" ]; then
|
||||
if [ "$PROMPT_DELETE" = "0" ]; then
|
||||
@@ -71,12 +67,4 @@ fi
|
||||
|
||||
dotfiles config --local status.showUntrackedFiles no
|
||||
|
||||
# 4. setup tmux
|
||||
mkdir -p ~/.tmux/plugins
|
||||
if [ ! -d ~/.tmux/plugins/tpm ]; then
|
||||
echo ">>> Installing Tmux Plugin Manager..."
|
||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
fi
|
||||
|
||||
|
||||
echo ">>> Done! Bash, tmux, vim, and dotfiles are ready."
|
||||
echo ">>> Done! Bash, kitty, vim, and dotfiles are ready."
|
||||
|
||||
Reference in New Issue
Block a user