mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-13 23:16:44 +00:00
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
nvim/plugin/
|
nvim/plugin/
|
||||||
nvim/.netrwhist
|
nvim/.netrwhist
|
||||||
|
tmux/plugins/
|
||||||
raycast/extensions
|
raycast/extensions
|
||||||
raycast/config.json
|
raycast/config.json
|
||||||
*.env
|
*.env
|
||||||
|
|||||||
@@ -68,6 +68,8 @@ bind-key -T copy-mode-vi v send -X begin-selection
|
|||||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
|
||||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
|
||||||
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
|
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
|
||||||
|
# 单击鼠标左键切换 pane 焦点,不触发 copy mode
|
||||||
|
bind-key -T root MouseDown1Pane select-pane -t = \; send-keys -M
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run '~/.config/tmux/plugins/tpm/tpm'
|
run '~/.config/tmux/plugins/tpm/tpm'
|
||||||
|
|||||||
20
setup.sh
20
setup.sh
@@ -163,6 +163,17 @@ function cmd_init() {
|
|||||||
print_success "Antigen already installed"
|
print_success "Antigen already installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install tpm (Tmux Plugin Manager)
|
||||||
|
local tpm_dir="$WORKING_DIR/tmux/plugins/tpm"
|
||||||
|
if [ -d "$tpm_dir" ]; then
|
||||||
|
print_success "tpm already installed"
|
||||||
|
else
|
||||||
|
print_warning "Installing tpm..."
|
||||||
|
mkdir -p "$WORKING_DIR/tmux/plugins"
|
||||||
|
git clone https://github.com/tmux-plugins/tpm "$tpm_dir"
|
||||||
|
print_success "tpm installed"
|
||||||
|
fi
|
||||||
|
|
||||||
# Create necessary directories
|
# Create necessary directories
|
||||||
print_warning "Creating directories..."
|
print_warning "Creating directories..."
|
||||||
mkdir -p "$HOME/.config/"
|
mkdir -p "$HOME/.config/"
|
||||||
@@ -616,6 +627,15 @@ function cmd_check() {
|
|||||||
missing=$((missing + 1))
|
missing=$((missing + 1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check tpm
|
||||||
|
echo -n "tpm: "
|
||||||
|
if [ -d "$WORKING_DIR/tmux/plugins/tpm" ]; then
|
||||||
|
print_success "installed"
|
||||||
|
else
|
||||||
|
print_error "not found"
|
||||||
|
missing=$((missing + 1))
|
||||||
|
fi
|
||||||
|
|
||||||
# Check symlinks
|
# Check symlinks
|
||||||
echo ""
|
echo ""
|
||||||
echo "Symlinks:"
|
echo "Symlinks:"
|
||||||
|
|||||||
Submodule tmux/plugins/tpm deleted from b699a7e01c
Reference in New Issue
Block a user