Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
mitchty
/
dotfiles
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
Add cconv aka currency convert so I don't need to
waste time opening a web browser for currency conversion. Yeah, I'm that weird.
cray
Mitch Tishmack
hace 11 años
padre
35a25e6805
commit
bcadf4772c
Se han
modificado 1 ficheros
con
7 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+7
-0
common/.profile.d/20-functions.sh
+ 7
- 0
common/.profile.d/20-functions.sh
Ver fichero
@@ -80,3 +80,10 @@ login_shell()
{
[ "$-" = "*i*" ]
}
# Yeah, sick of using the web browser for this crap
# Use is NUM FROM TO and boom get the currency converted from goggle.
cconv()
{
curl -L --silent "https://www.google.com/finance/converter?a=$1&from=$2&to=$3" | grep converter_result | perl -pe 's|[<]\w+ \w+[=]\w+[>]||g;' -pe 's|[<][/]span[>]||'
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar