-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·24 lines (17 loc) · 812 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·24 lines (17 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# Create necessary directories
sudo mkdir -p /opt/shell-color-scripts/colorscripts
sudo mkdir -p /usr/local/bin
# Copy color scripts to /opt/shell-color-scripts/colorscripts
sudo cp ./colorscripts/* /opt/shell-color-scripts/colorscripts
# Make all scripts executable
sudo chmod +x /opt/shell-color-scripts/colorscripts/*
# Copy main script to /usr/local/bin
sudo cp ./colorscript.sh /usr/local/bin/colorscript
sudo chmod +x /usr/local/bin/colorscript
# Create zsh completion directory if it doesn't exist
sudo mkdir -p /usr/local/share/zsh/site-functions
# Copy zsh completion file
sudo cp ./zsh_completion/_colorscript /usr/local/share/zsh/site-functions/
echo "Installation completed!"
echo "You can now use the 'colorscript' command. Try 'colorscript --help' for usage information."