Skip to content

Bookmark for your shell (sh, bash, zsh and others compatible)

License

Notifications You must be signed in to change notification settings

aiya000/sh-hereis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sh-hereis

This is cd utility for bash, zsh and another shells.

example

Install

Example for use zplug.

.zshrc

zplug 'aiya000/sh-hereis', use:'{init.sh, hereis.sh, place.sh, edit-places.sh, reload-places.sh}'

Examples for using

$ echo $HOME
    #=> /home/aiya000
$ cd ~ && hereis home-homu
    #=> hereis add an alias -> alias place_home-homu='cd "/home/aiya000"'
    #       and
    #   add shell variable  -> place_home_homu="/home/aiya000"
    #
    #   These was added to $HEREIS_PLACES_FILE

$ export HEREIS_ALIAS_PREFIX='p_'
$ cd ~/foo/bar && hereis foo-bar
    #=> hereis add an alias -> alias p_foo-bar='cd "/home/aiya000/foo/bar"'
    #                                ^^changed
    #      and
    #=> add shell variable  -> p_foo_bar="/home/aiya000/foo/bar"

Configurations

  • Shell variables
    • $HEREIS_PLACES_FILE
      • default value: ~/.hereis_places
    • $HEREIS_ALIAS_PREFIX
      • default value: place_

default value was defined automatically (if you don't defined it)

About

Bookmark for your shell (sh, bash, zsh and others compatible)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages