Search

Thought Asylum - Shell Commands


Overview

The Thought Asylum - Shell Commands snippet group is a collection of TextExpander snippets that provide a way to capture the output from terminal operations by entering a text abbreviation. The snippets use a variety of standard scripting based snippets to accomplish this.

Download

Download the Thought Asylum - Shell Commands snippet group.

Instructions for how to add a snippet group to TextExpander are also available.

Before you download and use this snippet group, please take note that it is provided without any guarantee of safe use, viability or suitability. You will use it at your own risk. But hopefully it will work as well for you as it does for me.

Additional Snippets

I cannot guarantee when or if more snippets will be added to this snippet group, but if you have any suggestions you would like me to consider for future updates, please feel free to ping a suggestion to @sylumer on Twitter.

Snippets


Calculate (BASH)

Abbreviation: bccc

Mobile Compatible: No

Description:

This snippet uses a command line calculation utility to carry out calculations.

More Information: TextExpander: Get Information from the Terminal.


Calculate Alternative (JS)

Abbreviation: calc+

Mobile Compatible: Yes

Description:

This snippet uses JavaScript evaluation to carry out calculations.

More Information: TextExpander: Inline Calculation.


Get System Information (BASH)

Abbreviation: .runsysinfo

Mobile Compatible: No

Description:

This snippet outputs a variety of information about your computer relating to software, hardware, memory, disk utilisation, network and displays.

More Information: None.


Lookup Definition of Word (BASH)

Abbreviation: .defineword

Mobile Compatible: No

Description:

This snippet prompts the user for a word. A definition (or set of definitions) for the word is then returned from an online dictionary.

More Information: None.


Run Cat (BASH)

Abbreviation: .runcat

Mobile Compatible: No

Description:

This snippet will output the plain text content of a file whose path is specified by the user.

More Information: TextExpander: Get Information from the Terminal.


Run Cat [Clipboard] (BASH)

Abbreviation: .runcbcat

Mobile Compatible: No

Description:

This snippet will output the plain text content of a file whose path is held on the clipboard

More Information: TextExpander: Get Information from the Terminal.


Run Command (BASH)

Abbreviation: .runcommand

Mobile Compatible: No

Description:

This snippet will run an arbitrary BASH command and output the result. This is the premise for many of the other snippets in this snippet group.

More Information: TextExpander: Get Information from the Terminal.


Run Get IP Address (All)

Abbreviation: .runipa

Mobile Compatible: No

Description:

This snippet calls the external, Wifi and ethernet IP address snippets and outputs their results.

More Information: None.


Run Get IP Address (External) (BASH)

Abbreviation: .runipx

Mobile Compatible: No

Description:

This snippet returns the computer's external IPv4 address.

More Information: None.


Run Get IP Address (WiFi) (BASH)

Abbreviation: .runipw

Mobile Compatible: No

Description:

This snippet returns the computer's WiFi IPv4 address.

More Information: None.


Run Get IP Address (Wired) (BASH)

Abbreviation: .runipe

Mobile Compatible: No

Description:

This snippet returns the computer's ethernet IPv4 address.

More Information: None.


Run Listing (BASH)

Abbreviation: .runlist

Mobile Compatible: No

Description:

This snippet will produce a directory listing for a manually entered path. The listing is based on the "ls" command with the "-al" parameters set.

More Information: TextExpander: Get Information from the Terminal.


Run Listing [Clipboard] (BASH)

Abbreviation: .runcblist

Mobile Compatible: No

Description:

This snippet will produce a directory listing for a path held on the clipboard. The listing is based on th "ls" coommand with the "-al" parameters set.

More Information: TextExpander: Get Information from the Terminal.


Run Ping (BASH)

Abbreviation: .runping

Mobile Compatible: No

Description:

This snippet will output the results of a specified number of ping attempts (defaults to 5) to an address specified by the user.

More Information: TextExpander: Get Information from the Terminal.


Run TraceRoute (BASH)

Abbreviation: .runtrace

Mobile Compatible: No

Description:

This snippet will output the results of a trace route to an address specified by the user.

More Information: TextExpander: Get Information from the Terminal.


Run WhoIs (BASH)

Abbreviation: .runwhois

Mobile Compatible: No

Description:

This snippet will output the results of a who is domain record lookup where the domain is entered by the user.

More Information: TextExpander: Get Domain Information - WhoIs Record.


Run WhoIs [Clipboard] (BASH)

Abbreviation: .runcbwhois

Mobile Compatible: No

Description:

This snippet will output the results of a who is domain record lookup where the domain is held on the clipboard.

More Information: TextExpander: Get Domain Information - WhoIs Record.


Select SheBang/HashBang

Abbreviation: $#!

Mobile Compatible: No

Description:

This snippet is for entering the first line in a script file. It outputs the She Bang or Hash Bang for the script file type specified by the user. Options available are BASH, Python, OSAScript (AppleScript), Shell, Ruby and PHP.

More Information: None.