Repository navigation
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·47 lines (38 loc) · 2.24 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·47 lines (38 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Simple DXSBash Installer
# Usage: curl -fsSL https://raw.githubusercontent.com/digitalxs/dxsbash/refs/heads/main/install.sh | bash
# Color codes for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color
echo -e "${BLUE}
██████╗ ██╗ ██╗███████╗██████╗ █████╗ ███████╗██╗ ██╗
██╔══██╗╚██╗██╔╝██╔════╝██╔══██╗██╔══██╗██╔════╝██║ ██║
██║ ██║ ╚███╔╝ ███████╗██████╔╝███████║███████╗███████║
██║ ██║ ██╔██╗ ╚════██║██╔══██╗██╔══██║╚════██║██╔══██║
██████╔╝██╔╝ ██╗███████║██████╔╝██║ ██║███████║██║ ██║
╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝${NC}"
echo -e "${CYAN}Professional Shell Environment for Linux Power Users${NC}"
echo -e "${YELLOW}digitalxs.ca${NC}\n"
# Create directory if it doesn't exist
mkdir -p "$HOME/linuxtoolbox"
# Change to the home directory to ensure we're in a valid location
cd "$HOME" || exit 1
# Clone the repository
echo -e "${GREEN}Cloning DXSBash repository...${NC}"
# Full clone: update-dxsbash fast-forwards to release tags, which
# needs the history (a --depth=1 clone cannot compute that reliably)
git clone https://github.com/digitalxs/dxsbash.git "$HOME/linuxtoolbox/dxsbash"
# Change to the repository directory
cd "$HOME/linuxtoolbox/dxsbash" || { echo "Failed to navigate to repository directory"; exit 1; }
# Make the setup script executable
chmod +x setup.sh
# Run the setup script
echo -e "${GREEN}Running setup script...${NC}"
./setup.sh
# Display completion message
echo -e "${GREEN}Installation complete!${NC}"
echo -e "You may need to restart your terminal or source your shell configuration file."
echo -e "For help, type: ${CYAN}help${NC}"