-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_bash.sh
executable file
·33 lines (25 loc) · 1.11 KB
/
mod_bash.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
#!/usr/bin/env bash
# I changed;
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# to
# PS1="${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$"
# on the EC2 instance, so I can tell local and aws apart.
#
# Consider incorporating some things from here;
# https://docs.dev.dea.ga.gov.au/getting_started/workstation.html#setup-kubernetes-dev-cluster-access
echo "# The code below is added by ubuntu-install-dev mod_bash changes start " >> ~/.bashrc
# Likely broken
# tee -a ~/.bashrc <<'END'
# # Change aws accounts and clusters
# ap(){
# export AWS_PROFILE=$1
# aws eks update-kubeconfig --name $1
# }
# END
# Doing this in the bash results in a bad PATH
#echo "conda activate dea " >> ~/.bashrc
echo "# ubuntu-install-dev mod_bash changes finish " >> ~/.bashrc
echo "# export AIRFLOW_HOME=~/airflow # use docker instead" >> ~/.bashrc
echo "echo 'conda activate dea # deactivate'" >> ~/.bashrc
echo "echo 'conda activate odc # deactivate'" >> ~/.bashrc
echo "# ubuntu-install-dev mod_bash changes finish " >> ~/.bashrc