You are not logged in.

#21 2016-05-17 19:14:50

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Functions, Aliases, One-Liners

Just got these from zsh-lovers(1):

alias -g ...='../..'
alias -g ....='../../..'
alias -g .....='../../../..'

Traverse up the directory tree with `.....` smile

I'm not sure how that would work with BASH hmm

Offline

#22 2016-05-17 19:30:09

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Functions, Aliases, One-Liners

Head_on_a_Stick wrote:

Just got these from zsh-lovers(1):

alias -g ...='../..'
alias -g ....='../../..'
alias -g .....='../../../..'

Traverse up the directory tree with `.....` smile

I'm not sure how that would work with BASH hmm

It doesn't! But this does:

alias g..='cd ../..'

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#23 2016-05-18 01:34:46

olminator
Member
Registered: 2015-11-24
Posts: 10

Re: Functions, Aliases, One-Liners

Head_on_a_Stick wrote:

I'm not sure how that would work with BASH hmm

damo wrote:

It doesn't! But this does:

Bash doesn't have -g aliases, so yes it doesn't work everywhere. But my main use for them is to cd up a few (>1) directories. In that case, one can write in its ~/.bashrc the following:

shopt -s autocd

and the exact same alias will move you up 2 (or more) directories. Furthermore it allows you to type the name of a directory in your current $PWD to cd into that directory. See http://www.gnu.org/software/bash/manual … iltin.html (it's the first option in the list)

Last edited by olminator (2016-05-18 01:36:59)

Offline

#24 2016-05-18 06:28:42

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Functions, Aliases, One-Liners

olminator wrote:
Head_on_a_Stick wrote:

I'm not sure how that would work with BASH hmm

one can write in its ~/.bashrc the following:

shopt -s autocd

and the exact same alias will move you up 2 (or more) directories. Furthermore it allows you to type the name of a directory in your current $PWD to cd into that directory. See http://www.gnu.org/software/bash/manual … iltin.html (it's the first option in the list)

that's a nice addition.
thanks.

Offline

#25 2016-05-18 06:55:22

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Functions, Aliases, One-Liners

Pretty neat. Thanks, olminator.

Offline

#26 2016-05-18 08:08:14

demifiend
Member
From: Harrisburg, PA
Registered: 2016-05-12
Posts: 25
Website

Re: Functions, Aliases, One-Liners

This is probably lame, but I got tired of typing out "dict $word | less" every time I wanted to check a definition.

function ldict() {
    dict $1 | less;
}

I keep it in a ~/.bash_functions file that I source from ~/.bashrc.


matthewgraybosch.com | Lenovo ThinkPad T430s (astarte) | System76 panp9 (thagirion)

"It made me feel a touch Byronic. Sometimes a girl just wants to be mad, bad, and dangerous to know." --Naomi in Silent Clarion

Offline

#27 2016-05-18 19:02:07

olminator
Member
Registered: 2015-11-24
Posts: 10

Re: Functions, Aliases, One-Liners

ohnonot wrote:
olminator wrote:

...

that's a nice addition.
thanks.

The same option is also available in zsh by the way (http://zsh.sourceforge.net/Intro/intro_16.html). Put in your ~/.zshrc

setopt autocd

Offline

#28 2016-05-19 07:00:29

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Functions, Aliases, One-Liners

@ demifiend. You've made my day. Probably native English spoken guys won't need that at all, but for me, constantly using dict, it's a real time saver. Thanks!

Last edited by Snap (2016-05-19 07:00:54)

Offline

#29 2016-05-19 07:31:19

demifiend
Member
From: Harrisburg, PA
Registered: 2016-05-12
Posts: 25
Website

Re: Functions, Aliases, One-Liners

Snap wrote:

@ demifiend. You've made my day. Probably native English spoken guys won't need that at all, but for me, constantly using dict, it's a real time saver. Thanks!

You're welcome. Believe it or not, I use this fairly often despite being a native English speaker. I'm also an author, so I often check definitions to ensure I'm using the right word for the meaning I want to convey.


matthewgraybosch.com | Lenovo ThinkPad T430s (astarte) | System76 panp9 (thagirion)

"It made me feel a touch Byronic. Sometimes a girl just wants to be mad, bad, and dangerous to know." --Naomi in Silent Clarion

Offline

#30 2016-05-20 06:15:22

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Functions, Aliases, One-Liners

BTW, gcide is great, but moby-thesaurus? just outputs a list of words that I doubt they are all synonims. Or I'm not getting what it does. Or just I have it borked here.

For example, for "convey"

From Moby Thesaurus II by Grady Ward, 1.0 [moby-thesaurus]:

  126 Moby Thesaurus words for "convey":
     abalienate, alien, alienate, amortize, articulate, assign, barter,
     bear, bequeath, break, breathe, broadcast, buck, canalize, carry,
     cede, channel, channelize, chime, chorus, come out with, commit,
     communicate, conduct, confer, consign, deed, deed over, deliver,
     demise, devolve upon, disclose, disseminate, emit, enfeoff,
     enunciate, exchange, express, ferry, fling off, fly, formulate,
     freight, funnel, get across, get over, give, give expression,
     give out with, give title to, give tongue, give utterance,
     give voice, give word, hand, hand down, hand on, hand over, hump,
     impart, leave word, let out, lift, lip, lug, make known, make over,
     manhandle, negotiate, out with, pack, pass, pass along, pass on,
     pass over, phonate, phrase, pipe, pour forth, present, project,
     pronounce, put across, put forth, put in words, put through, raise,
     relegate, remise, render, report, say, sell, send, send word,
     set forth, settle, settle on, share, share with, sign away,
     sign over, signal, siphon, sound, surrender, take, tell, throw off,
     tote, trade, traject, transfer, transmit, transport, trench,
     turn over, utter, verbalize, vocalize, voice, waft, whisk, whisper,
     wing, word

EDIT: or my English is even worse than what I thought. LOL

Last edited by Snap (2016-05-20 09:11:51)

Offline

#31 2016-05-20 09:16:28

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Functions, Aliases, One-Liners

I made a few tweaks for my usercase. Maybe someone likes them.

# Better dict
function dic() {
    dict -d wn $1;
}

function dicc() {
    dict $1 | less;
}

Short explanation: I have dict-wn dict-gcide & dict-moby-thesaurus installed. Wordnet is usually enough and it commonly doesn't need the use of less (dic function above). When I want it complete with examples, quotes, etc... I use the dicc function instead to display everything.

Once again, thanks a bunch for this, demifiend.

Last edited by Snap (2016-05-20 09:18:06)

Offline

#32 2016-05-20 09:37:17

demifiend
Member
From: Harrisburg, PA
Registered: 2016-05-12
Posts: 25
Website

Re: Functions, Aliases, One-Liners

Snap wrote:

BTW, gcide is great, but moby-thesaurus? just outputs a list of words that I doubt they are all synonims. Or I'm not getting what it does. Or just I have it borked here.

Yeah, the dict interface to moby-thesaurus isn't that great on its own. The aiksaurus tool (sudo apt-get install aiksaurus) isn't any better; it also just dumps a list of possible synonyms to STDOUT.

Unfortunately the only truly excellent dictionary/thesaurus app I've ever worked with is the Dictionary app for OSX. That tool is sweet.

Though I wonder how hard it would be to write a thesaurus shell script that could provide synonyms with definitions given the following arguments:

  • a word

  • a number of possible synonyms to provide

  • a comma-separated list of words to exclude


matthewgraybosch.com | Lenovo ThinkPad T430s (astarte) | System76 panp9 (thagirion)

"It made me feel a touch Byronic. Sometimes a girl just wants to be mad, bad, and dangerous to know." --Naomi in Silent Clarion

Offline

#33 2016-05-20 10:16:55

demifiend
Member
From: Harrisburg, PA
Registered: 2016-05-12
Posts: 25
Website

Re: Functions, Aliases, One-Liners

Snap wrote:

Once again, thanks a bunch for this, demifiend.

Nice work, but what if you changed the function names to reflect the targeted dictionary, as I've done in an updated version of my own functions?

# dwn stands for "dict: wordnet". It's probably sufficient for most cases.
dwn() {
    dict -d wn $1;
}

# prints an index of "The Devil's Dictionary" by Ambrose Bierce.
# The definitions contained in Bierce's dictionary are often ironic.
# pass a letter (e.g. "d31 a") to get words starting with that letter.
d3i() {
    if [ -z "$1" ]; then
        cat /usr/share/dictd/devil.index | cut -f 1 | grep -o "\b[a-z]\w*" | less;
    else
        cat /usr/share/dictd/devil.index | cut -f 1 | grep -o "\b$1\w*" | less;
    fi
}

# d3 searches the aforementioned Devil's Dictionary for a word.
# Because Bierce's lexicon isn't as comprehensive, use d3i first. :)
d3() {
    dict -d devil $1;
}

# dall hits ALL installed dictionaries.
dall() {
    dict $1 | less;
}

matthewgraybosch.com | Lenovo ThinkPad T430s (astarte) | System76 panp9 (thagirion)

"It made me feel a touch Byronic. Sometimes a girl just wants to be mad, bad, and dangerous to know." --Naomi in Silent Clarion

Offline

#34 2016-05-20 11:02:30

demifiend
Member
From: Harrisburg, PA
Registered: 2016-05-12
Posts: 25
Website

Re: Functions, Aliases, One-Liners

Also, @snap, you might want to install Wordnet. It's a University of Princeton project (and the source of the wn dictionary for dict), and its commandline tool includes options for listing synonyms and antonyms.

sudo apt-get install wordnet
man wn

For example, here's wn in definition mode:

demifiend at astarte in ~
$ wn fiend -over

Overview of noun fiend

The noun fiend has 3 senses (first 2 from tagged texts)
                                          
1. (3) monster, fiend, devil, demon, ogre -- (a cruel wicked and inhuman person)
2. (1) devil, fiend, demon, daemon, daimon -- (an evil supernatural being)
3. fanatic, fiend -- (a person motivated by irrational enthusiasm (as for a cause); "A fanatic is one who can't change his mind and won't change the subject"--Winston Churchill)

Or wn in synonym mode:

demifiend at astarte in ~
$ wn fiend -synsn

Synonyms/Hypernyms (Ordered by Estimated Frequency) of noun fiend

3 senses of fiend                                                       

Sense 1
monster, fiend, devil, demon, ogre
       => unpleasant person, disagreeable person

Sense 2
devil, fiend, demon, daemon, daimon
       => evil spirit

Sense 3
fanatic, fiend
       => enthusiast, partisan, partizan

matthewgraybosch.com | Lenovo ThinkPad T430s (astarte) | System76 panp9 (thagirion)

"It made me feel a touch Byronic. Sometimes a girl just wants to be mad, bad, and dangerous to know." --Naomi in Silent Clarion

Offline

#35 2016-05-21 06:27:04

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Functions, Aliases, One-Liners

This is getting even juicier. Great tips. Thanks so much.

Gonna give a go to the standalone Wordnet. Looks really interesting.

Offline

#36 2016-05-21 15:22:47

demifiend
Member
From: Harrisburg, PA
Registered: 2016-05-12
Posts: 25
Website

Re: Functions, Aliases, One-Liners

Snap wrote:

This is getting even juicier. Great tips. Thanks so much.

Gonna give a go to the standalone Wordnet. Looks really interesting.

You're welcome. Have fun!


matthewgraybosch.com | Lenovo ThinkPad T430s (astarte) | System76 panp9 (thagirion)

"It made me feel a touch Byronic. Sometimes a girl just wants to be mad, bad, and dangerous to know." --Naomi in Silent Clarion

Offline

#37 2016-06-24 07:23:59

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Functions, Aliases, One-Liners

Surely not for conkyweather addicts, but...

alias wea='inxi -wxxx && curl wttr.in'
alias moon='curl wttr.in/moon'

You can make it a oneliner, but the output is a bit too big.

For other locations:

function wttr() { curl wttr.in/"$@" ;}

Usage:

curl wttr.in/:help

Offline

#38 2016-06-24 12:37:59

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,028

Re: Functions, Aliases, One-Liners

demifiend wrote:

Also, @snap, you might want to install Wordnet. It's a University of Princeton project (and the source of the wn dictionary for dict), and its commandline tool includes options for listing synonyms and antonyms.

NICE!  Now I know some of this has been touched on between you and Snap, but this is my stuff.  I'm a Canuck so 'Canadian English Eh' is my language, like: "C-eh-n-eh-d-eh Eh!"  wink

@Snap - not an English speaker - could have fooled me!

Being a horrible typist I have always had 'dictionaries' and spellcheckers here.  I used "WordNet" for my Windows machines as soon as I 'discovered' it in so long ago it seems like forever.  When I switched to Linux I fount(¹) 'artha' (sudo apt-get install artha).  The Linux gui equivlant to the Windows app.  Highlight 'fount' and hold down [Ctrl]+[Alt] and hit [w].  Nice little app for someone interested in new words and used the WordNet database.

Now I have a whole new command to play with.  I didn't know about the "wn" by itself - I was using it with dict (see aliases below).  Thank you demifiend!.

Some of my aliases:

### OLD English Dictionary ###
alias devil='dict -h 127.0.0.1 -d devil'

### The Collaborative International Dictionary of English ###
### LONG OUTPUT ### LONG OUTPUT ### LONG OUTPUT ###
alias eng='echo "alias eng = dict -h 127.0.0.1 -d gcide" && dict -h 127.0.0.1 -d gcide'

### Jargon ###
alias jargon='dict -d jargon'

### Wordnet ###
alias wnet='echo "alias wnet = dict -d wn" && dict -d wn'

### Computer Acronyms ###
alias vera='dict -d vera'

### English Thesaurus ###
alias thes='dict -d moby-thesaurus'

And a dictionary text file I have here, you'll need these for the alias shown:
NOTE: the last one: dict-wn  smile

get dict-devil dict-gcide dict-jargon dict-moby-thesaurus dict-freedict-dan-eng dict-freedict-deu-eng dict-freedict-eng-deu dict-freedict-eng-fra dict-freedict-eng-nld dict-freedict-eng-por dict-freedict-eng-spa dict-freedict-eng-swe dict-freedict-fra-eng dict-freedict-spa-eng dict-freedict-swe-eng dict-vera dict-wn

===================================

dict-bouvier - John Bouvier's Law Dictionary for the USA
dict-devil - "The Devil's Dictionary" by Ambrose Bierce
dict-elements - Data regarding the Elements <<--- could be good with 'BunsenLabs'  :)
dict-foldoc - FOLDOC dictionary database
dict-gcide - Comprehensive English Dictionary
dict-jargon - dict package for The Jargon Lexicon
dict-moby-thesaurus - Largest and most comprehensive thesaurus
python-dictclient - Python client library for DICT (RFC2229) protocol
dict - dictionary client
dictd - dictionary server
dictfmt - utility to format a file for use by a dictd server
python-dictdlib - Python library for generating dictd dictionaries
dict-de-en - German-English translation dictionary for dictd
dict-freedict-afr-deu - Dict package for Afrikaans-German Freedict dictionary
dict-freedict-cro-eng - Dict package for Croatian-English Freedict dictionary
dict-freedict-cze-eng - Dict package for Czech-English Freedict dictionary
dict-freedict-dan-eng - Dict package for Danish-English Freedict dictionary
dict-freedict-deu-eng - Dict package for German-English Freedict dictionary
dict-freedict-deu-fra - Dict package for German-French Freedict dictionary
dict-freedict-deu-ita - Dict package for German-Italian Freedict dictionary
dict-freedict-deu-nld - Dict package for German-Dutch Freedict dictionary
dict-freedict-deu-por - Dict package for German-Portuguese Freedict dictionary
dict-freedict-eng-ara - Dict package for English-Arabic Freedict dictionary
dict-freedict-eng-cro - Dict package for English-Croatian Freedict dictionary
dict-freedict-eng-cze - Dict package for English-Czech Freedict dictionary
dict-freedict-eng-deu - Dict package for English-German Freedict dictionary
dict-freedict-eng-fra - Dict package for English-French Freedict dictionary
dict-freedict-eng-hin - Dict package for English-Hindi Freedict dictionary
dict-freedict-eng-hun - Dict package for English-Hungarian Freedict dictionary
dict-freedict-eng-iri - Dict package for English-Irish Freedict dictionary
dict-freedict-eng-ita - Dict package for English-Italian Freedict dictionary
dict-freedict-eng-lat - Dict package for English-Latin Freedict dictionary
dict-freedict-eng-nld - Dict package for English-Dutch Freedict dictionary
dict-freedict-eng-por - Dict package for English-Portuguese Freedict dictionary
dict-freedict-eng-rom - Dict package for English-Romanian Freedict dictionary
dict-freedict-eng-rus - Dict package for English-Russian Freedict dictionary
dict-freedict-eng-scr - Dict package for English-Serbo-Croat Freedict dictionary
dict-freedict-eng-spa - Dict package for English-Spanish Freedict dictionary
dict-freedict-eng-swa - Dict package for English-Swahili Freedict dictionary
dict-freedict-eng-swe - Dict package for English-Swedish Freedict dictionary
dict-freedict-eng-tur - Dict package for English-Turkish Freedict dictionary
dict-freedict-eng-wel - Dict package for English-Welsh Freedict dictionary
dict-freedict-fra-deu - Dict package for French-German Freedict dictionary
dict-freedict-fra-eng - Dict package for French-English Freedict dictionary
dict-freedict-fra-nld - Dict package for French-Dutch Freedict dictionary
dict-freedict-gla-deu - Dict package for Scottish Gaelic-German Freedict dictionary
dict-freedict-hin-eng - Dict package for Hindi-English Freedict dictionary
dict-freedict-hun-eng - Dict package for Hungarian-English Freedict dictionary
dict-freedict-iri-eng - Dict package for Irish-English Freedict dictionary
dict-freedict-ita-deu - Dict package for Italian-German Freedict dictionary
dict-freedict-ita-eng - Dict package for Italian-English Freedict dictionary
dict-freedict-jpn-deu - Dict package for Japanese-German Freedict dictionary
dict-freedict-lat-deu - Dict package for Latin-German Freedict dictionary
dict-freedict-lat-eng - Dict package for Latin-English Freedict dictionary
dict-freedict-nld-deu - Dict package for Dutch-German Freedict dictionary
dict-freedict-nld-eng - Dict package for Dutch-English Freedict dictionary
dict-freedict-nld-fra - Dict package for Dutch-French Freedict dictionary
dict-freedict-por-deu - Dict package for Portuguese-German Freedict dictionary
dict-freedict-por-eng - Dict package for Portuguese-English Freedict dictionary
dict-freedict-scr-eng - Dict package for Serbo-Croat-English Freedict dictionary
dict-freedict-slo-eng - Dict package for Slovak-English Freedict dictionary
dict-freedict-spa-eng - Dict package for Spanish-English Freedict dictionary
dict-freedict-swa-eng - Dict package for Swahili-English Freedict dictionary
dict-freedict-swe-eng - Dict package for Swedish-English Freedict dictionary
dict-freedict-tur-deu - Dict package for Turkish-German Freedict dictionary
dict-freedict-tur-eng - Dict package for Turkish-English Freedict dictionary
dict-freedict-wel-eng - Dict package for Welsh-English Freedict dictionary
goldendict - feature-rich dictionary lookup program
lookup-el - emacsen interface to electronic dictionaries
mueller7-dict - Mueller English/Russian dictionary in dict format
mueller7accent-dict - Mueller English/Russian dictionary with accents in dict format
pygfarm - Collection of add-on modules for Pygopherd
dict-vera - Dictionary of computer related acronyms -- dict format
dict-wn - electronic lexical database of English language for dict

And some translation dictionaries:

##### Dictionaries #####
### English - Spanish - English ###
alias enes='dict -d fd-eng-spa'
alias ensp='dict -d fd-eng-spa'
alias spen='dict -d fd-spa-eng'
alias esen='dict -d fd-spa-eng'

### English-Croatian - English
alias encr='dict -d fd-eng-hrv'
alias cren='dict -d fd-hrv-eng'

### English - German - English ###
alias ende='dict -d fd-eng-deu'
alias deen='dict -d fd-deu-eng'

### English - French - English ###
alias enfr='dict -d fd-eng-fra'
alias fren='dict -d fd-fra-eng'

### English - Dutch - English ###
alias endu='dict -d fd-eng-nld'
alias duen='dict -d fd-nld-eng'

### English - Portuguese - English ###
alias enpo='dict -d fd-eng-por'
alias poen='dict -d fd-por-eng'

### English - Swedish - English ###
alias ensw='dict -d fd-eng-swe'
alias swen='dict -d fd-swe-eng'

### English - Italian - English ###
alias enit='dict -d fd-eng-ita'
alias iten='dict -d fd-ita-eng'

Samples:

 24 Jun 16 @ 09:03:36 ~
  $ wnet fount
alias wnet = dict -d wn
1 definition found

From WordNet (r) 3.0 (2006) [wn]:

  fount
      n 1: a specific size and style of type within a type family
           [syn: {font}, {fount}, {typeface}, {face}, {case}]
      2: a plumbing fixture that provides a flow of water [syn:
         {fountain}, {fount}]
 
 24 Jun 16 @ 09:03:50 ~
  $ wn fount

Information available for noun fount
	-hypen		Hypernyms

	-hypon, -treen	Hyponyms & Hyponym Tree

	-synsn		Synonyms (ordered by estimated frequency)

	-smemn		Member of Holonyms

	-holon		All Holonyms

	-famln		Familiarity & Polysemy Count

	-coorn		Coordinate Terms (sisters)

	-hholn		Hierarchical Holonyms

	-grepn		List of Compound Words

	-over		Overview of Senses


No information available for verb fount

No information available for adj fount

No information available for adv fount
 
 24 Jun 16 @ 09:04:08 ~
  $ eng fount
alias eng = dict -h 127.0.0.1 -d gcide
2 definitions found

From The Collaborative International Dictionary of English v.0.48 [gcide]:

  Fount \Fount\, n. [See {Font}.] (Print.)
     A font.
     [1913 Webster]

From The Collaborative International Dictionary of English v.0.48 [gcide]:

  Fount \Fount\, n. [OF. font, funt, fr. L. fons, fontis, a
     fountain; of uncertain origin, perh. akin to fundere to pour,
     E. found to cast. Cf. {Font}.]
     A fountain.
     [1913 Webster]
 
 24 Jun 16 @ 09:04:47 ~
  $ enes house
3 definitions found

From English-Spanish FreeDict Dictionary ver. 0.2.1 [fd-eng-spa]:

  house /haus/
   casa

From English-Spanish FreeDict Dictionary ver. 0.2.1 [fd-eng-spa]:

  house /hausɔfwəːʃip/
   iglesia

From English-Spanish FreeDict Dictionary ver. 0.2.1 [fd-eng-spa]:

  house /haustʃɑːdʒ/
   servicio
 
 24 Jun 16 @ 09:05:03 ~
  $ 

===
¹ Don't you hate it when a typo is a word?


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#39 2016-06-24 13:00:43

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,028

Re: Functions, Aliases, One-Liners

Snap wrote:

BTW, gcide is great, but moby-thesaurus? just outputs a list of words that I doubt they are all synonims. Or I'm not getting what it does. Or just I have it borked here.

For example, for "convey"

EDIT: or my English is even worse than what I thought. LOL

lol lol lol no your English is just fine.  For example:
convey: give tongue <--- has nothing to do with kissing ... but probably refers to some old form of English meaning: to speak out, to voice the words. etc etc.

From: Oxford Dictionary

The Second Edition of the 20-volume Oxford English Dictionary contains full entries for 171,476 words in current use, and 47,156 obsolete words. To this may be added around 9,500 derivative words included as subentries.

... and I remember hearing somewhere that the average person knows about 2-3000 of them.  So like I know what 'impignorate' means - - NO!  - well I do now  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#40 2016-06-24 20:10:30

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,028

Re: Functions, Aliases, One-Liners

Snap wrote:

Surely not for conkyweather addicts, but...

alias wea='inxi -wxxx && curl wttr.in'
alias moon='curl wttr.in/moon'

I'm a conky addict and you're saying I can't use that?   8.(  ... so sad ...

Does this mean I have to delete my OpenBox Menu entry?
My normal terminal opens too small to see "wttr" properly sooooooooooo ....

			<item label="TermWx">
				<action name="Execute">
					<command>terminator --geometry=1010x720+20+20 -b -x wttr</command>
				</action>

2016_06_24_16_59_32_Scrot11.jpg
Of course now I have to make one for the moon. cool  Thank you!

OH and just so you know ... an inxi weather conky  tongue
2016_06_24_17_04_19_Scrot11.jpg

We now return you to the topic at hand ... aliases ...

### Show Running Conkys
# alias shoc='ps aux|grep conky'  ## better - see below
alias shoc='ps ax | grep conky | cut -c28-'
 24 Jun 16 @ 17:09:22 ~
  $ shoc
grep conky
conky -q -c /media/5/Conky/S12/S12_time_tm.conky
conky -q -c /media/5/Conky/S12/S12_time_L.conky
conky -q -c /media/5/Conky/S12/S12_time_R.conky
conky -q -c /media/5/Conky/The_Clock_3-9day_2.conky
conky -q -c /media/5/Conky/S11_Rem_Cal.conky
conky -q -c /media/5/Conky/S11_Dates.conky
conky -q -c /media/5/Conky/S11_thin_l2_side.conky
conky -q -c /media/5/Conky/1b2_accuweather_conkyweather_font/S11_1b2_Forecast_tm.conky
conky -q -c /media/5/Conky/S11_thin_r2_side.conky
conky -q -c /media/5/Conky/S11_DateTime_br.conky
conky -q -c /media/5/Conky/1b2_accuweather_conkyweather_font/S11_Weather_BAR.conky
conky -q -c /media/5/Conky/S11_Email_01.conky
 
 24 Jun 16 @ 17:09:32 ~
  $ 

hmmmmmmmmmmmmm, I'm missing one.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB