mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 00:00:13 -08:00
added google gemini cli to the setup process. github.com/google-gemini/gemini-cli
This commit is contained in:
@@ -413,8 +413,24 @@ if command -v nvm &>/dev/null; then
|
||||
nvm use --lts
|
||||
# Set the LTS version as default
|
||||
nvm alias default 'lts/*'
|
||||
|
||||
# Install global npm packages after Node.js is set up
|
||||
echo -e "${YELLOW}Installing global npm packages...${NC}"
|
||||
|
||||
# Install Google Gemini CLI
|
||||
if ! command -v gemini &> /dev/null; then
|
||||
echo -e "${YELLOW}Installing Google Gemini CLI...${NC}"
|
||||
if npm install -g @google/gemini-cli; then
|
||||
echo -e "${GREEN}Google Gemini CLI installed successfully!${NC}"
|
||||
else
|
||||
echo -e "${RED}Warning: Failed to install Google Gemini CLI${NC}"
|
||||
fi
|
||||
else
|
||||
echo -e "${GREEN}Google Gemini CLI is already installed${NC}"
|
||||
fi
|
||||
else
|
||||
echo -e "${YELLOW}Warning: nvm installation may require a new shell session${NC}"
|
||||
echo -e "${YELLOW}Warning: Skipping npm package installations (npm not available)${NC}"
|
||||
fi
|
||||
|
||||
# Define a reusable function for cloning Zsh plugins
|
||||
@@ -575,6 +591,16 @@ alias ll="ls -laFh --group-directories-first --color=auto"
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Set up gemini CLI alias if gemini is available
|
||||
if command -v gemini &> /dev/null; then
|
||||
echo -e "${YELLOW}Setting up gemini CLI aliases...${NC}"
|
||||
echo "alias gm=\"gemini\"" >> "$ALIASES_FILE"
|
||||
echo "alias gemini-cli=\"gemini\"" >> "$ALIASES_FILE"
|
||||
echo -e "${GREEN}Gemini CLI aliases (gm, gemini-cli) configured successfully!${NC}"
|
||||
else
|
||||
echo -e "${YELLOW}Gemini CLI not found. Skipping gemini aliases.${NC}"
|
||||
fi
|
||||
|
||||
# Save the customized aliases to the dotfiles directory for reference
|
||||
echo -e "${YELLOW}Saving customized aliases to dotfiles directory...${NC}"
|
||||
if [ -f "$ALIASES_FILE" ]; then
|
||||
|
||||
Reference in New Issue
Block a user