-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_ubuntu.sh
More file actions
executable file
·30 lines (26 loc) · 839 Bytes
/
setup_ubuntu.sh
File metadata and controls
executable file
·30 lines (26 loc) · 839 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
25
26
27
28
29
30
#!/bin/bash
# hann@ieee.org
function install {
app=$1; method=$2; opt=$3
if [[ -f "/usr/bin/${app}" ]] || [[ -f "/snap/bin/${app}" ]]; then
echo " $app installed"
else
echo " install $app"
sudo $method install $app $opt
fi
}
WORKSPACE=$(pwd)
install sublime-text snap --classic
install obsidian snap --classic
install code snap --classic
#----
list_extensions="$(code --list-extensions)"
if [[ $list_extensions == "" ]]; then
code --install-extension ms-vscode.cpptools
code --install-extension xaver.clang-format
code --install-extension ms-python.python
code --install-extension ms-vscode.theme-predawnkit
code --install-extension ms-vscode-remote.vscode-remote-extensionpack
#code --install-extension james-yu.latex-workshop
#code --uninstall-extension ms-vscode.theme-predawnkit
fi