forked from imumesh18/dev-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsublime-text.sh
More file actions
executable file
·36 lines (26 loc) · 1.25 KB
/
sublime-text.sh
File metadata and controls
executable file
·36 lines (26 loc) · 1.25 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
#!/usr/bin/env bash
# Exit on error
set -e
# Exit on error in any of pipe commands
set -o pipefail
sudo -v
# Changes the text color to Light-Orange.
echo -e "\\033[1;38;5;208m"
cat << "EOF"
___ _ _ _ _ ____ _ _ _ _____ _
|_ _|_ __ ___| |_ __ _| | (_)_ __ __ _ / ___| _ _| |__ | (_)_ __ ___ ___ |_ _|____ _| |_
| || '_ \/ __| __/ _` | | | | '_ \ / _` | \___ \| | | | '_ \| | | '_ ` _ \ / _ \ | |/ _ \ \/ / __|
| || | | \__ \ || (_| | | | | | | | (_| | ___) | |_| | |_) | | | | | | | | __/ | | __/> <| |_
|___|_| |_|___/\__\__,_|_|_|_|_| |_|\__, | |____/ \__,_|_.__/|_|_|_| |_| |_|\___| |_|\___/_/\_\\__|
|___/
EOF
# Changes the text color to default
echo -e "\\033[0m"
# Imports Sublime text gpg key
curl -sSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
# Adds the Sublime text apt PPA
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# Update packages and Installs Sublime text latest version
sudo apt update
sudo apt install -y sublime-text
# TODO Add Verification of installation