-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc.custom
46 lines (44 loc) · 1.07 KB
/
.bashrc.custom
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
export PS1="\[$(tput setaf 2)\][\t][\u@\h \W] \!$\[$(tput sgr0)\] "
count_sessions=`who | cut -f1 -d" " | wc -l`
if [ ${count_sessions} -ne 2 ]
then
echo "User already selected the environment";
else
PS3='Please select your environment : '
options_env=("SnapdealMobileApi" "SnapdealMobileAdmin" "gcm" "Snapdeal" "quit")
select opt_env in "${options_env[@]}"
do
case $opt_env in
"SnapdealMobileApi")
cd $HOME/Desktop/gitrepo/SnapdealMobileApi;
git pull;
break
;;
"SnapdealMobileAdmin")
cd $HOME/Desktop/gitrepo/SnapdealMobileAdmin;
git pull;
break
;;
"Payment-QE")
cd $HOME/Desktop/gitrepo/Payment-QE;
git pull;
break;
;;
"gcm")
cd $HOME/Desktop/gitrepo/gcm
git pull;
break
;;
"Snapdeal")
cd $HOME/Desktop/gitrepo/Snapdeal
ds gitrepo/Snapdeal pom-mobile.xml
break
;;
"quit")
break
;;
*)
echo "Invalid environment provided";;
esac
done
fi