-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.package.sh
More file actions
69 lines (57 loc) · 1.97 KB
/
.package.sh
File metadata and controls
69 lines (57 loc) · 1.97 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
logger() {
local GREEN="\033[1;32m"
local NC="\033[00m"
echo -e "${GREEN}Logger: $1 ${NC}"
}
install_find(){
echo installing...
sudo apt-get install fzf
sudo apt-get install fd-find
}
postgres_install() {
logger "Installing postgres..."
sudo apt install -q -y postgresql postgresql-contrib libpq-dev
logger "Successfully installed postgres client and server"
}
wsl_setup(){
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev libpq-dev libgdbm-dev libncurses5-dev automake libtool bison gnupg postgresql postgresql-contrib
}
ruby_install(){
gpg2 --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
sudo apt-get install curl
\curl -sSL https://get.rvm.io | bash -s stable
source ~/.bashrc
rvm list
rvm install ruby-3.3.5
gem install bundler
logger "Successfully installed ruby ..."
}
node_nvm(){
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
nvm install node
}
basic_install() {
logger "Update system..."
sudo apt -y update
logger "Install basic utils..."
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev libpq-dev libgdbm-dev libncurses5-dev automake libtool bison gnupg postgresql postgresql-contrib gpg2
}
git_configs(){
git config --global color.ui true
}
set_local_bin_path() {
logger "Creating a local bin path (~/.local/bin) folder and adding it to the $PATH"
mkdir -p ~/.local/bin ~/.local/lib
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
logger "exported local bin path variable to ~/.bashrc"
}
main() {
logger
basic_install
wsl_setup
ruby_install
node_nvm
}