-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.sh
48 lines (34 loc) · 2.12 KB
/
main.sh
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
#!/bin/bash
##### README #############################################
# this is a .sh file to set up my (@not_ragan on twitter!)
# development environment for ubuntu. it installs my necessary tools
# and a few cool bells and whistles, like some terminal junk
###### OBSERVATIONS ######################################
#! OBS: remember to add these permissions before executing this script
#! chmod +x main.sh
# (check that you're already in this folder when executing the above command)
#! OBS: this script should be executed with
# bash main.sh [args]
#! OBS: remember to run this to copy your windows ssh keys to this if you're using wsl inside a windows pc that has ssh keys
# cp -r /mnt/c/Users/<your windows user name here>/.ssh ~/.
## ADD PERMISSIONS TO ALL SUBSCRIPTS ##############################################################
chmod a+w -R .
## GET CURRENT PATH ###############################################################################
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# copied from https://stackoverflow.com/questions/59895/get-the-source-directory-of-a-bash-script-from-within-the-script-itself
####### PARSE ARGUMENTS ###########################################################################
. $DIR/scripts/parse_arguments.sh
###### SET UP CONNECTION TO WINDOWS SUPERSYSTEM ###################################################
. $DIR/scripts/wsl_setup.sh
######## UPDATE REPOS #############################################################################
. $DIR/scripts/update_repos.sh
######## SHELL STUFF & DOTFILES ###################################################################
# install zsh and oh-my-zsh
. $DIR/scripts/install_oh_my_zsh.sh
# call subscript that sets up dotfiles
# the script takes all dotfiles from ./dotfiles/*, and copies them to root "~/"
. $DIR/scripts/set_up_dotfiles.sh # set up dotfiles
######### MY UTILITIES ############################################################################
. $DIR/scripts/install_utilities.sh
######### MY DEVELOPMENT TOOLS ####################################################################
. $DIR/scripts/install_dev_tools.sh