Skip to content

Commit cd430d3

Browse files
authored
Versión v0.2-alpha
Mejoras e incorporaciones en General
2 parents 01a6a79 + 662047c commit cd430d3

19 files changed

+589
-214
lines changed

Accesos_Directos/firefox-nightly.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GenericName=Web Browser
77
GenericName[es]=Navegador web
88
X-GNOME-FullName=Firefox Nightly Web Browser
99
X-GNOME-FullName[es]=Navegador web Firefox Nightly
10-
Exec=.local/bin/firefox-nightly %u
10+
Exec=.local/bin/firefox-nightly %u -P Firefox-Nightly
1111
Terminal=false
1212
X-MultipleArgs=false
1313
Type=Application

Accesos_Directos/firefox-quantum.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GenericName=Web Browser
77
GenericName[es]=Navegador web
88
X-GNOME-FullName=Firefox Quantum Web Browser
99
X-GNOME-FullName[es]=Navegador web Firefox Quantum
10-
Exec=.local/bin/firefox-quantum %u
10+
Exec=.local/bin/firefox-quantum %u -P Firefox-Quantum
1111
Terminal=false
1212
X-MultipleArgs=false
1313
Type=Application

home/.atom/config.cson renamed to Apps/.atom/config.cson

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,45 @@
99
text:
1010
editor:
1111
tabLength: 4
12-
"atom-autocomplete-php":
13-
binComposer: "/usr/bin/composer"
1412
"atom-i18n":
15-
customMenuI18nPath: "/home/fryntiz/.atom/packages/atom-i18n/def/custom_menu.cson"
1613
locale: "es"
14+
"atom-autocomplete-php":
15+
binComposer: "/usr/bin/composer"
1716
"autoclose-html":
1817
legacyMode: true
1918
"autocomplete-plus":
2019
autoActivationDelay: 300
2120
core:
22-
autoHideMenuBar: true
2321
disabledPackages: [
2422
"language-clojure"
2523
"language-csharp"
2624
"language-java"
2725
"language-mustache"
2826
"language-objective-c"
2927
"metrics"
30-
"linter-php"
28+
"about"
29+
"welcome"
3130
]
3231
packagesWithKeymapsDisabled: [
3332
"multi-cursor"
3433
]
3534
telemetryConsent: "no"
3635
themes: [
37-
"atom-dark-ui"
36+
"one-dark-ui"
3837
"monokai"
3938
]
39+
docblockr: {}
4040
editor:
4141
fontFamily: "Input"
4242
fontSize: 18
4343
scrollPastEnd: true
4444
scrollSensitivity: 50
45+
invisibles: {}
4546
showIndentGuide: true
47+
showInvisibles: true
4648
softWrapAtPreferredLineLength: true
4749
tabLength: 4
48-
"exception-reporting":
49-
userId: "1dc8ebda-3216-4f8f-9e42-d1ce794d268d"
50+
tabType: "soft"
5051
"git-diff": {}
5152
"git-log":
5253
fontFamily: "Input, Inconsolata, Monaco, Consolas, 'Courier New', Courier"
@@ -107,3 +108,7 @@
107108
showOnStartup: false
108109
zentabs:
109110
neverCloseUnsaved: true
111+
tabs:
112+
enableVcsColoring: true
113+
whitespace:
114+
ignoreWhitespaceOnCurrentLine: false
File renamed without changes.

Apps/.atom/snippets.cson

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# Your snippets
2+
#
3+
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
4+
# expand the prefix into a larger code block with templated values.
5+
#
6+
# You can create a new snippet in this file by typing "snip" and then hitting
7+
# tab.
8+
#
9+
# An example CoffeeScript snippet to expand log to console.log:
10+
#
11+
# '.source.coffee':
12+
# 'Console log':
13+
# 'prefix': 'log'
14+
# 'body': 'console.log $1'
15+
#
16+
# Each scope (e.g. '.source.coffee' above) can only be declared once.
17+
#
18+
# This file uses CoffeeScript Object Notation (CSON).
19+
# If you are unfamiliar with CSON, you can read more about it in the
20+
# Atom Flight Manual:
21+
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
22+
23+
24+
##############################################
25+
######## PHP ###########
26+
##############################################
27+
28+
# Comentario del autor
29+
'.text.html.php':
30+
'Comentario de archivo':
31+
'prefix': 'com'
32+
'body': """
33+
/**
34+
* @author Raúl Caro Pastorino
35+
* @copyright Copyright © 2017 Raúl Caro Pastorino
36+
* @license https://wwww.gnu.org/licenses/gpl.txt
37+
*/
38+
"""
39+
40+
41+
# Comparar Cadenas de texto
42+
'.text.html.php':
43+
'Comparar Cadenas de texto':
44+
'prefix': 'comparacadenas'
45+
'body': """
46+
$a = 'cadena1';
47+
$b = 'cadena2';
48+
49+
// Contador de diferencias
50+
$contador = 0;
51+
52+
// Longitud de la cadena $a
53+
$longitud = mb_strlen($a);
54+
55+
// Comparar cada carácter distinto y sumar contador
56+
for ($i=0; $i < $longitud; $i++) {
57+
if ((mb_substr($a, $i, 1)) !== (mb_substr($b, $i, 1))) {
58+
$contador++;
59+
}
60+
}
61+
"""
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
72+
73+
##############################################
74+
######## HTML ##########
75+
##############################################
76+
# Comentario del autor
77+
'.text.html.basic':
78+
'Comentario de archivo':
79+
'prefix': 'com'
80+
'body': """
81+
/**
82+
* @author Raúl Caro Pastorino
83+
* @copyright Copyright © 2017 Raúl Caro Pastorino
84+
* @license https://wwww.gnu.org/licenses/gpl.txt
85+
*/
86+
"""
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
##############################################
98+
######## JS ##########
99+
##############################################
100+
# Comentario del autor
101+
'.source.js':
102+
'Comentario de archivo':
103+
'prefix': 'com'
104+
'body': """
105+
/**
106+
* @author Raúl Caro Pastorino
107+
* @copyright Copyright © 2017 Raúl Caro Pastorino
108+
* @license https://wwww.gnu.org/licenses/gpl.txt
109+
*/
110+
"""
111+
112+
113+
114+
115+
116+
117+
118+
119+
120+
121+
##############################################
122+
######## PYTHON ##########
123+
##############################################
124+
# Comentario del autor
125+
'.source.python':
126+
'Comentario de archivo':
127+
'prefix': 'com'
128+
'body': """
129+
/**
130+
* @author Raúl Caro Pastorino
131+
* @copyright Copyright © 2017 Raúl Caro Pastorino
132+
* @license https://wwww.gnu.org/licenses/gpl.txt
133+
*/
134+
"""

Apps/Atom_IDE.sh

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
#!/bin/bash
2+
# -*- ENCODING: UTF-8 -*-
3+
#######################################
4+
# ### Raúl Caro Pastorino ### #
5+
## ## ## ##
6+
### # https://github.com/fryntiz/ # ###
7+
## ## ## ##
8+
# ### www.fryntiz.es ### #
9+
#######################################
10+
11+
############################
12+
## Constantes Colores ##
13+
############################
14+
amarillo="\033[1;33m"
15+
azul="\033[1;34m"
16+
blanco="\033[1;37m"
17+
cyan="\033[1;36m"
18+
gris="\033[0;37m"
19+
magenta="\033[1;35m"
20+
rojo="\033[1;31m"
21+
verde="\033[1;32m"
22+
23+
#############################
24+
## Variables Generales ##
25+
#############################
26+
atom=$(cat $PWD/Apps/Atom_Paquetes.lst) # Instala Paquetes de Atom
27+
DIR_SCRIPT=`echo $PWD`
28+
29+
function atom_preconfiguracion() {
30+
echo ""
31+
echo -e "$verde Se va a instalar$rojo Atom IDE$gris"
32+
echo -e "$verde Puedes añadir configuraciones$amarillo"
33+
read -p '¿Quieres configuraciones? y/N → ' input
34+
if [ $input = 's' ] || [ $input = 'S' ] || [ $input = 'y' ] || [ $input = 'Y' ]
35+
then
36+
echo -e "$verde Creando Backup de ~/.atom$gris"
37+
cp -R $HOME/.atom $HOME/.atom.BACKUP 2>> /dev/null
38+
echo -e "$verde Añadiendo configuración nueva"
39+
cp -R $DIR_SCRIPT/Apps/.atom $HOME/
40+
fi
41+
}
42+
43+
function atom_postconfiguracion() {
44+
echo -e "$verde Añadiendo configuraciones para Atom"
45+
46+
echo -e "$verde Deshabilitando complementos"
47+
apm disable welcome
48+
apm disable about
49+
}
50+
51+
function atom_plugins() {
52+
# Si se ha instalado correctamente ATOM pues instalamos sus plugins
53+
echo -e "$verde Preparando instalación complementos$rojo Atom$gris"
54+
if [ -f /usr/bin/atom ]
55+
then
56+
for p in $atom
57+
do
58+
# Comprobación si existe instalado el complemento
59+
if [ -d "$HOME/.atom/packages/$p" ]
60+
then
61+
echo -e "$amarillo Ya se encuentra instalado →$rojo $p"
62+
else
63+
echo -e "$verde Instalando$rojo $p $amarillo"
64+
apm install $p
65+
fi
66+
done
67+
fi
68+
}
69+
70+
# Instala complementos para Atom IDE
71+
function atom_install() {
72+
function instalar() {
73+
REINTENTOS=5
74+
echo -e "$verde Descargando$rojo ATOM$gris"
75+
for (( i=1; i<=$REINTENTOS; i++ ))
76+
do
77+
rm $DIR_SCRIPT/TMP/atom.deb 2>> /dev/null
78+
wget https://atom.io/download/deb -O $DIR_SCRIPT/TMP/atom.deb && break
79+
done
80+
echo -e "$verde Instalando$rojo Atom $gris"
81+
sudo dpkg -i $DIR_SCRIPT/TMP/atom.deb && sudo apt install -f -y
82+
}
83+
84+
# Comprueba si está instalado
85+
if [ -f /usr/bin/atom ]
86+
then
87+
echo -e "$verde Ya esta$rojo ATOM$verde instalado en el equipo, omitiendo paso$gris"
88+
else
89+
# Preparando configuración de Atom
90+
atom_preconfiguracion
91+
92+
# Comprobar si está descargado o descargar
93+
if [ -f $DIR_SCRIPT/TMP/atom.deb ]
94+
then
95+
echo -e "$verde Instalando$rojo Atom $gris"
96+
sudo dpkg -i $DIR_SCRIPT/TMP/atom.deb && sudo apt install -f -y
97+
98+
# Si falla la instalación se rellama la función tras limpiar
99+
if [ ! -f /usr/bin/atom ]
100+
then
101+
rm -f $DIR_SCRIPT/TMP/atom.deb
102+
instalar
103+
fi
104+
else
105+
instalar
106+
fi
107+
fi
108+
109+
# Instalar Plugins
110+
atom_plugins
111+
112+
# Añadir Configuraciones tras instalar
113+
atom_postconfiguracion
114+
}
File renamed without changes.

Apps/Atom_Paquetes.lst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
atom-i18n
2+
autoclose-html
3+
autocomplete-bash-builtins
4+
browser-plus
5+
busy-signal
6+
color-picker
7+
docblockr
8+
file-icons
9+
intentions
10+
linter
11+
linter-jshint
12+
linter-php
13+
linter-python
14+
linter-python-pep8
15+
linter-htmlhint
16+
linter-ui-default
17+
open-html-in-browser
18+
monokai
19+
pigments
20+
python-indent
21+
toggle-quotes
22+
template-generator

0 commit comments

Comments
 (0)