33 lines
641 B
Bash
Executable File
33 lines
641 B
Bash
Executable File
#!/usr/bin/zsh
|
|
|
|
|
|
# install sublime-text
|
|
wget -qO - \
|
|
'https://download.sublimetext.com/sublimehq-pub.gpg' \
|
|
| gpg --dearmor \
|
|
| sudo tee /etc/apt/trusted.gpg.d/sublime.gpg
|
|
|
|
sudo apt install -y \
|
|
apt-transport-https
|
|
|
|
echo 'deb https://download.sublimetext.com/ apt/stable/' \
|
|
| sudo tee '/etc/apt/sources.list.d/sublime-text.list'
|
|
|
|
sudo apt update -y
|
|
sudo apt install -y \
|
|
sublime-text
|
|
|
|
|
|
BIN='/Apps'
|
|
|
|
# aliases
|
|
ln -s '/opt/sublime_text/sublime_text' "$BIN/s"
|
|
|
|
|
|
# link configs
|
|
mkdir -p ~/.config/sublime-text/Packages/User/
|
|
cd /Cfg/sublime-text/
|
|
ln -s `pwd`/[a-zA-Z0-9]* \
|
|
~/.config/sublime-text/Packages/User/ \
|
|
--force
|