https://github.com/aiya000/sh-hereis
Bookmark for your shell (sh, bash, zsh and others compatible)
https://github.com/aiya000/sh-hereis
bookmark bookmark-manager plugin shell shell-script
Last synced: about 2 months ago
JSON representation
Bookmark for your shell (sh, bash, zsh and others compatible)
- Host: GitHub
- URL: https://github.com/aiya000/sh-hereis
- Owner: aiya000
- License: mit
- Created: 2016-07-02T09:29:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T10:34:21.000Z (over 8 years ago)
- Last Synced: 2025-08-15T09:40:41.881Z (about 2 months ago)
- Topics: bookmark, bookmark-manager, plugin, shell, shell-script
- Language: Shell
- Homepage:
- Size: 27.7 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sh-hereis
This is cd utility for bash, zsh and another shells.
## Install
Example for use zplug..zshrc
```zsh
zplug 'aiya000/sh-hereis', use:'{init.sh, hereis.sh, place.sh, edit-places.sh, reload-places.sh}'
```## Examples for using
```sh
$ 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)