https://github.com/linux-china/zshmarks
zsh marks for oh-my-zsh
https://github.com/linux-china/zshmarks
Last synced: 9 months ago
JSON representation
zsh marks for oh-my-zsh
- Host: GitHub
- URL: https://github.com/linux-china/zshmarks
- Owner: linux-china
- Created: 2014-02-12T09:36:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-12T10:19:13.000Z (over 12 years ago)
- Last Synced: 2025-02-15T16:56:38.630Z (over 1 year ago)
- Size: 145 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
zshmarks
========
A port of [Bashmarks (by huyng)](https://github.com/huyng/bashmarks), a directory bookmarks for the oh-my-zsh
### How to install
* Download the script or clone this repository in [oh-my-zsh](http://github.com/robbyrussell/oh-my-zsh) plugins directory:
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/linux-china/zshmarks.git
* Activate the plugin in `~/.zshrc`:
plugins=( [plugins...] zshmarks [plugins...])
* Source `~/.zshrc` to take changes into account:
source ~/.zshrc
### Differences with Bashmarks
Because some conflicts with oh-my-zsh and git plugin, changes as following:
* g -> go
* d -> delete
* l -> list
### Shell Commands
s - Saves the current directory as "bookmark_name"
go - Goes (cd) to the directory associated with "bookmark_name"
p - Prints the directory associated with "bookmark_name"
delete - Deletes the bookmark
list - Lists all available bookmarks
### Example Usage
$ cd /var/www/
$ s webfolder
$ cd /usr/local/lib/
$ s locallib
$ list
$ go web
$ go webfolder