GithubHelp home page GithubHelp logo

sote's Introduction

sote

Shell favorites paths, for faster cd.


sote is like a perpetual pushd : he stores your favorites system paths, so you can jump to it by typing sote <name>.

Installation

sote embeds his own installation procedure. You can use one of the commands below to install it on your system :

WARNING: sote is currently not compatible with zsh. A fixed version will come soon.

Install with curl

curl -sS https://raw.githubusercontent.com/krkn/sote/master/bin/sote | bash

Install with wget

wget -q -O - https://raw.githubusercontent.com/krkn/sote/master/bin/sote | bash

Manually from GIT repo

git clone https://github.com/krkn/sote ~/.sote && ~/.sote/bin/sote

If you want change the "Sote Store" location (~/.sote-store), edit the Sote script and change SOTE_STORE variable.

Usage

sote [options] <name>

    Name:

        *                      Jumps to the path corresponding to the given name.

    Options:

        -h, --help                   Output usage information
        -v, --version                Output the version number
        -l, --list                   Lists the paths stored by sote.
        -s, --show <name>            Shows the path corresponding to the given name.
        -a, --add <name> [path]      Add the path to the store with the given name. If no path is given, use current path.
        -r, --remove <name>          Remove the path stored by sote at the given name.
        -c, --clear                  Clear all the paths stored by sote. Ask for confirmation before acting.

Example

An explicit video is better than thousands words, so :

sote demo

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.

Release History

  • 0.2.0: Refactoring list display and add test on directory existence.

  • 0.1.4: Remove style from show command to use in $().

  • 0.1.3: Bugfix embeds install procedure, transert ownership to krkn (09/09/14)

  • 0.1.2: Add an embeds install procedure (31/07/14)

  • 0.1.1: Bugfixes (31/07/14)

  • 0.1.0: Rewrite in bash, first release (17/07/14)

  • 0.0.1: Starting project (19/06/14)

License

Copyright (c) 2014 krkn
Licensed under the MIT license.

sote's People

Contributors

leny avatar argael avatar benjamintoussaint avatar

Stargazers

Terence Fan avatar Victor Igor avatar James Benner avatar Clément avatar Emmanuel Béziat avatar Loïc Mahieu avatar Michaël avatar Stéphan Zych avatar

Watchers

 avatar James Cloos avatar

sote's Issues

Error on installation (git method)

This is the message I've got:

basename: illegal option -- b
usage: basename string [suffix]
       basename [-a] [-s suffix] string [...]
-bash: [: !=: unary operator expected
cp: illegal option -- b
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
-bash: /Users/me/.sote/sote: No such file or directory

[Opération terminée]

Sorry for not investigate your code... this is just a 5 seconds test in the morning ! ;-)

Best regards,
Mk

`sote -a something /Volumes/Somewhere` not working

I try to use sotebut have a strange message...

When doing sote -a local /Volumes/Sites/local/ it return

error: wrong number of arguments
usage: git config [options]

Config file location
    --global              use global config file
    --system              use system config file
    --local               use repository config file
    -f, --file <file>     use given config file
    --blob <blob-id>      read config from given blob object

Action
    --get                 get value: name [value-regex]
    --get-all             get all values: key [value-regex]
    --get-regexp          get values for regexp: name-regex [value-regex]
    --get-urlmatch        get value specific for the URL: section[.var] URL
    --replace-all         replace all matching variables: name value [value_regex]
    --add                 add a new variable: name value
    --unset               remove a variable: name [value-regex]
    --unset-all           remove all matches: name [value-regex]
    --rename-section      rename section: old-name new-name
    --remove-section      remove a section: name
    -l, --list            list all
    -e, --edit            open an editor
    --get-color <slot>    find the color configured: [default]
    --get-colorbool <slot>
                          find the color setting: [stdout-is-tty]

Type
    --bool                value is "true" or "false"
    --int                 value is decimal number
    --bool-or-int         value is --bool or --int
    --path                value is a path (file or directory name)

Other
    -z, --null            terminate values with NUL byte
    --includes            respect include directives on lookup

added: local › total 2901708

After that, when doing sote -l it return nothing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.