Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
mitchty
/
dotfiles
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
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
11 anni fa
parent
35a25e6805
commit
bcadf4772c
1 ha cambiato i file
con
7 aggiunte
e
0 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+7
-0
common/.profile.d/20-functions.sh
+ 7
- 0
common/.profile.d/20-functions.sh
Vedi File
@@ -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[>]||'
}
Scrivi
Anteprima
Caricamento…
Annulla
Salva