Skip to content

sldir is a handy command line tool for unix-like systems to save and load frequently visited directories.

License

Notifications You must be signed in to change notification settings

ZhouShengsheng/sldir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sldir

sldir is a handy command line tool for unix-like systems to save and load frequently visited directories.

Features

Quick Save and Load for 0-9 Slots

  • s0 to s9: Save directories;
  • l0 to l9: Load directories;
  • d0 to d9: Delete saves;
  • sl: Print all saved directories.

Examples:

  • Save current directory to slot 1:

    $ s1
  • Load directory saved at slot 1:

    $ l1
  • Delete record saved at slot 1:

    $ d1
  • Save current directory to slot 2:

    $ s2
  • Load directory saved at slot 2:

    $ l2
  • Delete record saved at slot 2:

    $ d2
  • Print all saved directories:

    $ sl

    An example output looks like this:

Advanced Uses by Calling sdir, ldir, ddir and sldir**

  • sdir name: Save current directory to the given slot name;
  • ldir name: Load directory saved at name slot;
  • ddir name: Delete save saved at name slot;
  • sldir: Same as sl, print all saved directories.

Examples:

  • Save current directory to slot work:

    $ sdir work
  • Load directory saved at slot work:

    $ ldir work
  • Delete record saved at slot work:

    $ ddir work
  • Print all saved directories:

    $ sldir

Installation

Quick Installation

  1. Copy and paste the following command and run it in your terminal to quickly install:
git clone https://github.com/ZhouShengsheng/sldir.git /tmp/sldir && cd /tmp/sldir && bash install.sh && cd - && rm -rf /tmp/sldir
  1. Restart your terminal or source ~/.bash_profile or ~/.zshrc.

If the quick installation failed, you might need to try the following manual installation.

Manual Installation

  1. Clone the repository:
git clone --depth 1 https://github.com/ZhouShengsheng/sldir.git
  1. Run the install.sh script:
cd sldir
./install.sh
  1. Restart your terminal or source ~/.bash_profile or ~/.zshrc.

  2. (Optional) Clean up:

cd ..
rm -rf sldir

Supported Shell

  • Bash
  • Zsh

License

sldir is released under the MIT license. See LICENSE for details.

About

sldir is a handy command line tool for unix-like systems to save and load frequently visited directories.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages