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:
45
README.md
45
README.md
@@ -6,8 +6,7 @@ My personal dotfiles for quick setup on new machines. Change once, update everyw
|
||||
|
||||
| File | Description |
|
||||
|------|-------------|
|
||||
| `.bashrc` | Bash configuration with custom prompt, aliases, lazy-loaded conda/nvm, auto-start tmux |
|
||||
| `.tmux.conf` | tmux config with vi keybindings and TPM plugins |
|
||||
| `.bashrc` | Bash configuration with custom prompt, aliases, lazy-loaded conda/nvm |
|
||||
| `.vimrc` | Vim configuration with clipboard support, syntax highlighting, and sensible defaults |
|
||||
| `setup.sh` | Bootstrap script for new Debian-like machines |
|
||||
|
||||
@@ -22,53 +21,43 @@ Or manually:
|
||||
```bash
|
||||
git clone --bare https://gitea.sjhl.nz/james/dotfiles ~/.dotfiles
|
||||
|
||||
# Define the dotfiles alias
|
||||
dotfiles() {
|
||||
/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" "$@"
|
||||
}
|
||||
|
||||
# Checkout files (will prompt if conflicts exist)
|
||||
dotfiles checkout
|
||||
|
||||
# Hide untracked files from status
|
||||
dotfiles config --local status.showUntrackedFiles no
|
||||
```
|
||||
|
||||
## Managing Your Dotfiles
|
||||
|
||||
After installation, the `dotfiles` command is available in your shell:
|
||||
|
||||
```bash
|
||||
# View status
|
||||
dotfiles status
|
||||
|
||||
# Add changes
|
||||
dotfiles add .bashrc
|
||||
dotfiles commit -m "Update prompt"
|
||||
dotfiles push
|
||||
```
|
||||
|
||||
The alias is already defined in `.bashrc`, so it's available in new terminals.
|
||||
## kitty Usage
|
||||
|
||||
## tmux Usage
|
||||
|
||||
tmux starts automatically when you open a new terminal (configured in `.bashrc`).
|
||||
kitty is the terminal emulator - open it from your desktop launcher or run `kitty`.
|
||||
|
||||
**Basic Commands:**
|
||||
| Command | Action |
|
||||
|---------|--------|
|
||||
| `tmux` | Start new session |
|
||||
| `tmux ls` | List sessions |
|
||||
| `tmux attach -t 0` | Attach to session 0 |
|
||||
| `Ctrl+b d` | Detach from session |
|
||||
| `Ctrl+b c` | Create new window |
|
||||
| `Ctrl+b %` | Split vertically |
|
||||
| `Ctrl+b "` | Split horizontally |
|
||||
| `Ctrl+b [` | Copy/vi mode |
|
||||
| `q` | Exit copy mode |
|
||||
| `Ctrl+Shift+Enter` | New window |
|
||||
| `Ctrl+Shift+]` | Horizontal split |
|
||||
| `Ctrl+Shift+[` | Vertical split |
|
||||
| `Ctrl+Shift+h/j/k/l` | Navigate splits |
|
||||
| `Ctrl+Shift+Arrow` | Resize split |
|
||||
| `Ctrl+Shift+c` | Copy to clipboard |
|
||||
| `Ctrl+Shift+v` | Paste from clipboard |
|
||||
| `Ctrl+Shift+p` | Scrollback pager |
|
||||
| `Ctrl+Shift+h` | Show scrollback |
|
||||
|
||||
**Install TPM plugins:**
|
||||
After first tmux start, press `Ctrl+b I` to install plugins (tpm, tmux-sensible, tmux-yank).
|
||||
**Copy mode** (in scrollback): vi keys to navigate, Enter to copy selection.
|
||||
|
||||
**SSH**: When using kitty, run `ssh` normally - kitty intercepts it for a better experience.
|
||||
|
||||
## Vim Usage
|
||||
|
||||
@@ -89,12 +78,8 @@ Clipboard is integrated - yanking/pasting works with system clipboard.
|
||||
|
||||
## Uninstall
|
||||
|
||||
To remove dotfiles from a machine:
|
||||
|
||||
```bash
|
||||
dotfiles checkout HEAD
|
||||
dotfiles clean -fd
|
||||
rm -rf ~/.dotfiles ~/.dotfiles-backup
|
||||
```
|
||||
|
||||
Your original files will be restored from the backup created during checkout.
|
||||
|
||||
Reference in New Issue
Block a user