mirror of
https://github.com/acedanger/shell.git
synced 2026-03-25 00:51:50 -07:00
feat: Add bash completion for backup scripts and enhance README documentation
This commit is contained in:
@@ -71,6 +71,7 @@ fi
|
||||
|
||||
# Make scripts executable
|
||||
chmod +x "$DOTFILES_DIR/setup/setup.sh"
|
||||
chmod +x "$DOTFILES_DIR/completions/backup-scripts-completion.bash" 2>/dev/null || true
|
||||
|
||||
# Run setup script
|
||||
"$DOTFILES_DIR/setup/setup.sh"
|
||||
|
||||
@@ -279,6 +279,24 @@ clone_zsh_plugin "https://github.com/zsh-users/zsh-autosuggestions" "$PLUGINS_DI
|
||||
clone_zsh_plugin "https://github.com/zsh-users/zsh-syntax-highlighting" "$PLUGINS_DIR/zsh-syntax-highlighting"
|
||||
clone_zsh_plugin "https://github.com/MichaelAquilina/zsh-you-should-use" "$PLUGINS_DIR/zsh-you-should-use"
|
||||
|
||||
# Set up bash completion for backup scripts
|
||||
echo -e "${YELLOW}Setting up bash completion for backup scripts...${NC}"
|
||||
COMPLETION_SCRIPT="$DOTFILES_DIR/completions/backup-scripts-completion.bash"
|
||||
if [ -f "$COMPLETION_SCRIPT" ]; then
|
||||
# Create completions directory in home
|
||||
mkdir -p "$HOME/.local/share/bash-completion/completions"
|
||||
|
||||
# Copy completion script to user's completion directory
|
||||
cp "$COMPLETION_SCRIPT" "$HOME/.local/share/bash-completion/completions/"
|
||||
|
||||
# Make sure it's executable
|
||||
chmod +x "$HOME/.local/share/bash-completion/completions/backup-scripts-completion.bash"
|
||||
|
||||
echo -e "${GREEN}Bash completion script installed successfully!${NC}"
|
||||
else
|
||||
echo -e "${YELLOW}Warning: Bash completion script not found at $COMPLETION_SCRIPT${NC}"
|
||||
fi
|
||||
|
||||
# Set up dotfiles
|
||||
echo -e "${YELLOW}Setting up dotfiles...${NC}"
|
||||
# Consolidate symbolic link creation for dotfiles
|
||||
|
||||
Reference in New Issue
Block a user