-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodex-cli.sh
More file actions
123 lines (99 loc) · 3.53 KB
/
codex-cli.sh
File metadata and controls
123 lines (99 loc) · 3.53 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
### Hecho por Yordis Cujar
FECHA=$(date +"%Y-%m-%d")
# https://github.com/microsoft/Codex-CLI
## Once configured for your shell of preference, you can use the Codex CLI by writing a comment (starting with #) into your shell, and then hitting Ctrl + G.
function chiguire()
{
clear
echo -e "\033[33m@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@@@@%#++*###*=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@@#***++=-===+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@=-=-+*++++*+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@%*++-+*+**+**+*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@#=++#*+++=+++**%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@@*====--:-=++*####%%@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@@@@@= :=++*****+**####%%%%%@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@@@@@#::-=++****+=+++*###########%@@@@@@@@@@@@@"
echo -e "\033[33m@@@@@@@@*-==+++**++++++++*********#####%%@@@@@@@@@"
echo -e "\033[33m@@@@@@@@*=++++++++++++++******************%@@@@@@@"
echo -e "\033[33m@@@@@@@@@+++**+===++++=++****#***********++%@@@@@@"
echo -e "\033[33m@@@@@@@@@#=++**=-+====+****************++*+=#@@@@@"
echo -e "\033[33m@@@@@@@@@@#=+++==---:-=+++***+*++*++***+**+==@@@@@"
echo -e "\033[33m@@@@@@@@@@@*--.-==: .-=-==++++++++**+*****+==%@@@@"
echo -e "\033[33m@@@@@@@@@@@@+:.:-==:..:--======*++**+**++*+==%@@@@"
echo -e "\033[33m@@@@@@@@@@@@@=.:-=-%%-...::::-+**++*+++=++==-#@@@@"
echo -e "\033[33m@@@@@@@@@@@@@*::=-=@@@%*=:..:=+++++=++==+==-:#@@@@"
echo -e "\033[33m@@@@@@@@@%%*==.-=--+***+*+: :-=--=:----:::.-@@@@@"
echo -e "\033[33m@@@@@@@@%%*++--=----+====-:... ..::::---==+*@@@@@@"
echo -e "\033[33m@@@@@@@@@@@@%%##**####%%%##****##%%%@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo -e "\033[33m@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
sleep 2s
clear
}
function fabricante()
{
clear
echo -e "\033[4mhttps://github.com/yordisc/"
sleep 2s
clear
}
function inicio()
{
clear
echo " "
echo " "
echo -e "\033[34m##############################"
echo -e "\033[34m##### Instalar Codex-CLI #####"
echo -e "\033[34m##############################"
echo " "
sleep 2s
clear
echo " Antes de instalar ten a la mano el ORG-ID / API-KEY / Engine ID "
echo " Mas información en: https://github.com/microsoft/Codex-CLI"
sleep 2s
clear
}
function correccion()
{
## Modificacion eliminando de la linea 46 eliminando ''
sudo chmod -R 777 $HOME/.codex-cli/scripts/zsh_setup.sh
sudo sed -i "46s/ '' '/ '/g" zsh_setup.sh
}
function installcodex()
{
clear
echo -e "\033[32mIniciando..."
sleep 2s
### Requerimientos
pip uninstall openai
pip install --upgrade pip
pip install openai
### OpenIA-terminal ###
cd
rm -r $HOME/.codex-cli
mkdir $HOME/.codex-cli
sudo chmod -R 777 $HOME/.codex-cli
sudo chown -R $USER $HOME/.codex-cli
git clone https://github.com/microsoft/Codex-CLI.git $HOME/.codex-cli
cd $HOME/.codex-cli/scripts
###
correccion
###
./zsh_setup.sh
### ./zsh_cleanup.sh
## ORG-ID
## Modelo
## API-KEY
echo -e "\033[32m#----------------------------Instalado Codex-cli (ChatGPT para terminal)-----------------------------#"
echo -e "\033[32m#----------------------------Para usar solo escribe algo comentado ( # ) y luego usa Ctrl + G.-------#"
sleep 2s
}
##### Inicio del programa ######
fabricante
chiguire
inicio
installcodex
chiguire
fabricante