Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > System > Shells

    Closebracket 0.0.7

    Download button

    No screenshots available
    Downloads: 555  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.1/5)
    27 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    AlpT | More programs
    GPL / FREE
    November 26th, 2007, 11:29 GMT
    ROOT / System / Shells

     Read user reviews (0)  Refer to a friend  Subscribe

    Closebracket description

    Closebracket let you define multiple shell actions in a single command.

    Closebracket let you define multiple shell actions in a single command to speed up the typing of the most repetitive shell commands. The command name of Closebracket is `]' and `][', that's because these characters are near the "Enter" key and it is easy to type them fast.

    `]' stands for "primary fire", while `][' is the secondary one.

    After few days you'll find Closebracket very additive.

    Closebracket is dedicated to the God of Laziness, may He bless you (when He feels to do it).

    Installation:

    Download the latest tarball from http://www.freaknet.org/alpt/src/utils/closebracket/tarball/

    Use the ./install.sh script to install it. It will copy the files in ~/.closebracket and add some aliases in ~/.bashrc

    Usage:

    Since too many words are needed to describe all the actions that are included
    by default, I'll show you them by examples.

    Keep in mind that you can tune them and define your own actions by editing the
    ~/.closebracket/closebracket.conf file.

    In the first line closebracket is used to activate an action. The second line is the equivalent of that action.

    ##
    ### Basic shell movements
    ##

    $ ]
    $ ls # ls current directory

    $ ][
    $ cd # cd to home

    $ ] dir/
    $ cd dir/

    $ ][ dir/
    $ ls dir/

    $ ][ file
    $ cat file

    $ ][ non_existent_file
    $ vim non_existent_file

    ##
    ### Remote shells
    ##

    $ ] shell # With closebracket you keep the list of the
    $ ssh shell.expanded.org # name of your remote shells in
    # ~/.closebracket/shells. In this case we put
    # "shell.expanded.org" in the list.
    # Closebracket searches the closest match with
    # the word you typed and then use that as the
    # remote shell hostname.

    $ ] shell:file
    $ vim scp://shell.expanded.org/file # Beware of the Vim power

    $ ] user@shell:/path/file
    $ ] scp://user@shell.expanded.org/path/file

    $ ][ shell:dir/
    $ scp -r shell.expanded.org:dir/ .

    $ ][ shell:dir/ local_dir/
    $ scp -r shell.expanded.org:dir/ local_dir/

    $ ][ file1 file3 dir1 dir3 shell:remote_dir/
    $ scp -r file1 file3 dir1 dir3 shell.expanded.org:remote_dir/

    ##
    ### URLs, mail addresses and algebra
    ##

    $ ] http://URL
    $ firefox http://URL

    $ ][ http://URL
    $ wget http://URL

    $ ] email@address.org
    $ mutt email@address.org

    $ ] 2*2+1-21%2^2
    $ echo 2*2+1-21%2^2 | bc -l

    $ ] "2*2+1*sqrt(400)/l(2)^2" # if you want to use parentesis you
    $ echo "2*2+1*sqrt(400)/l(2)^2" | bc -l # have to use quotes ;(

    ##
    ### File type based on extension
    ##

    $ ] pack.tar.gz # This works for .tar, .tar.bz2,
    $ tar xfz pack.tar.gz; cd pack/ # .tar.gz, .tgz, .zip, .rar
    # If the directory unpacked isn't the
    # same of the filename of the tarball
    # it understands that ^_-

    $ ] movie_or_mp3.ogg # .avi, .mp3, .wav, .wmv, ...
    $ mplayer movie_or_mp3.ogg

    $ ] image.jpg # .jpg, .png, .gif, ...
    $ gqview image.jpg # if you are in tty it launches `seejpeg'

    $ ][ image.jpg
    $ gimp image.jpg

    $ ] file.htm # .htm, .html, .php, ...
    $ firefox file.htm # if you are in tty it launches `links' instead.

    What's New in This Release:

    · Closebracket is now ZSH compatible.
    · Various bugs were fixed.



    Product's homepage

      


    TAGS:

    shell shortcut | shortcut definer | console typing speed | Closebracket | shell | shortcut

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM