wd
==
[![Build Status](https://travis-ci.org/mfaerevaag/wd.png?branch=master)](https://travis-ci.org/mfaerevaag/wd)
`wd` (*warp directory*) lets you jump to custom directories in zsh, without using `cd`. Why? Because `cd` seems ineffecient when the folder is frequently visited or has a long path.
### Setup
### oh-my-zsh
`wd` comes bundles with [oh-my-zshell](https://github.com/robbyrussell/oh-my-zsh)!
Just add the plugin in your `~/.zshrc` file:
plugins=(... wd)
#### Automatic
Run either in terminal:
* `curl -L https://github.com/mfaerevaag/wd/raw/master/install.sh | sh`
* `wget --no-check-certificate https://github.com/mfaerevaag/wd/raw/master/install.sh -O - | sh`
#### Manual
* Clone this repo to your liking
* Add `wd` function to `.zshrc` (or `.profile` etc.):
wd() {
. ~/paht/to/wd/wd.sh
}
* Install manpage. From `wd`'s base directory (requires root permissions):
# cp wd.1 /usr/share/man/man1/wd.1
# chmod 644 /usr/share/man/man1/wd.1
Note, when pulling and updating `wd`, you'll need to do this again in case of changes to the manpage.
#### Completion
If you're NOT using [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) and you want to utelize the zsh-completion feature, you will also need to add the path to your `wd` installation (`~/bin/wd` if you used the automatic installer) to your `fpath`. E.g. in your `~/.zshrc`:
fpath=(~/path/to/wd $fpath)
Also, you may have to force a rebuild of `zcompdump` by running:
$ rm -f ~/.zcompdump; compinit
### Usage
* Add warp point to current working directory:
$ wd add foo
If a warp point with the same name exists, use `add!` to overwrite it.
Note, a warp point cannot contain colons, or only consist of only spaces and dots. The first will conflict in how `wd` stores the warp points, and the second will conflict other features, as below.
* From an other directory (not necessarily), warp to `foo` with:
$ wd foo
* You can warp back to previous directory, and so on, with this dot syntax:
$ wd ..
$ wd ...
This is a wrapper for the zsh `dirs` function.
(You might need `setopt AUTO_PUSHD` in your `.zshrc` if you hare not using [oh-my-zshell](https://github.com/robbyrussell/oh-my-zsh)).
* Remove warp point test point:
$ wd rm foo
* List all warp points (stored in `~/.warprc`):
$ wd ls
* List warp points to current directory, or optionally, path to given warp point:
$ wd show
* Remove warp points to non-existent directories.
$ wd clean
Use `clean!` to not be prompted with confirmation (force).
* Print usage with no opts or the `help` argument:
$ wd help
* Print the running version of `wd`:
$ wd --version
* Specifically set the config file (default `~/.warprc`), which is useful when testing:
$ wd --config ./file <action>
* Force `exit` with return code after running. This is not default, as it will *exit your terminal*, though required when testing/debugging.
$ wd --debug <action>
* Silence all output:
$ wd --quiet <action>
### Testing
`wd` comes with a small test suite, run with [shunit2](https://code.google.com/p/shunit2/). This can be used to confirm that things are working as it should on your setup, or to demonstrate an issue.
To run, simply `cd` into the `test` directory and run the `tests.sh`.
$ ./tests.sh
### License
The project is licensed under the [MIT-license](https://github.com/mfaerevaag/wd/blob/master/LICENSE).
### Finally
If you have issues, feedback or improvements, don't hesitate to report it or submit a pull-request. In the case of an issue, we would much appreciate if you would include a failing test in `test/tests.sh`. Explanation on how to run the tests, read the section "Testing" in this README.
Credit to [altschuler](https://github.com/altschuler) for awesome idea.
Hope you enjoy!
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
MAC下好用的terminal(iterm2+zsh)详细配置方法 (4489个子文件)
00090803d142dc8d090f39627e1570419d803d 2KB
00090803d142dc8d090f39627e1570419d803d 2KB
00090803d142dc8d090f39627e1570419d803d 2KB
00090803d142dc8d090f39627e1570419d803d 2KB
00090803d142dc8d090f39627e1570419d803d 2KB
00090803d142dc8d090f39627e1570419d803d 2KB
01c9605d1e02a23636eddc62f54f176cbe72df 94B
01c9605d1e02a23636eddc62f54f176cbe72df 94B
01c9605d1e02a23636eddc62f54f176cbe72df 94B
01c9605d1e02a23636eddc62f54f176cbe72df 94B
01c9605d1e02a23636eddc62f54f176cbe72df 94B
01c9605d1e02a23636eddc62f54f176cbe72df 94B
01ca04503c89ef83f807ce0d2bfecf5cc42c2a 5KB
01ca04503c89ef83f807ce0d2bfecf5cc42c2a 5KB
01ca04503c89ef83f807ce0d2bfecf5cc42c2a 5KB
01ca04503c89ef83f807ce0d2bfecf5cc42c2a 5KB
01ca04503c89ef83f807ce0d2bfecf5cc42c2a 5KB
01ca04503c89ef83f807ce0d2bfecf5cc42c2a 5KB
0305aba511266865b371fa74b94bb3ee321e09 238B
0305aba511266865b371fa74b94bb3ee321e09 238B
0305aba511266865b371fa74b94bb3ee321e09 238B
0305aba511266865b371fa74b94bb3ee321e09 238B
0305aba511266865b371fa74b94bb3ee321e09 238B
0305aba511266865b371fa74b94bb3ee321e09 238B
0331da511551bfe09fe63378c94a9fb27eb370 242B
0331da511551bfe09fe63378c94a9fb27eb370 242B
0331da511551bfe09fe63378c94a9fb27eb370 242B
0331da511551bfe09fe63378c94a9fb27eb370 242B
0331da511551bfe09fe63378c94a9fb27eb370 242B
0331da511551bfe09fe63378c94a9fb27eb370 242B
0333b226d4ab71600cdb493a24ba2f241762cc 474B
03793ef13b5dd3e7f52ac40f17fd37f015af44 207B
03793ef13b5dd3e7f52ac40f17fd37f015af44 207B
03793ef13b5dd3e7f52ac40f17fd37f015af44 207B
03793ef13b5dd3e7f52ac40f17fd37f015af44 207B
03793ef13b5dd3e7f52ac40f17fd37f015af44 207B
03793ef13b5dd3e7f52ac40f17fd37f015af44 207B
03d79885d8df4628ef9f0cefb16c491877eb06 5KB
03d79885d8df4628ef9f0cefb16c491877eb06 5KB
03d79885d8df4628ef9f0cefb16c491877eb06 5KB
03d79885d8df4628ef9f0cefb16c491877eb06 5KB
03d79885d8df4628ef9f0cefb16c491877eb06 5KB
03d79885d8df4628ef9f0cefb16c491877eb06 5KB
04feadeff5f71c4dcecd7b969ef2bb5b814fed 286B
0581cfc7b4819a593f65bd5c19652b71febbb7 59B
0581cfc7b4819a593f65bd5c19652b71febbb7 59B
0581cfc7b4819a593f65bd5c19652b71febbb7 59B
0581cfc7b4819a593f65bd5c19652b71febbb7 59B
0581cfc7b4819a593f65bd5c19652b71febbb7 59B
0581cfc7b4819a593f65bd5c19652b71febbb7 59B
061f34d7dbb2e65d2c378dcee9402466ab63ae 278B
061f34d7dbb2e65d2c378dcee9402466ab63ae 278B
061f34d7dbb2e65d2c378dcee9402466ab63ae 278B
061f34d7dbb2e65d2c378dcee9402466ab63ae 278B
061f34d7dbb2e65d2c378dcee9402466ab63ae 278B
061f34d7dbb2e65d2c378dcee9402466ab63ae 278B
062e89f1173e2ebe59b717db5bf45b0b76aaa2 159B
077c0250739330636084a8a6227b38d98c8587 185B
07facf41e97d0de250f565d5e514f1e6c998a2 266B
07facf41e97d0de250f565d5e514f1e6c998a2 266B
07facf41e97d0de250f565d5e514f1e6c998a2 266B
07facf41e97d0de250f565d5e514f1e6c998a2 266B
07facf41e97d0de250f565d5e514f1e6c998a2 266B
07facf41e97d0de250f565d5e514f1e6c998a2 266B
08480f2df77c90a19bd6e804dac0cbaf75880b 212B
09228c536b72c3482b9d43e84aac27ed9b0cb7 250B
09228c536b72c3482b9d43e84aac27ed9b0cb7 250B
09228c536b72c3482b9d43e84aac27ed9b0cb7 250B
09228c536b72c3482b9d43e84aac27ed9b0cb7 250B
09228c536b72c3482b9d43e84aac27ed9b0cb7 250B
09228c536b72c3482b9d43e84aac27ed9b0cb7 250B
0a3575d2b2ab9200e2ce023ed14ab8ffe77675 60B
0a3575d2b2ab9200e2ce023ed14ab8ffe77675 60B
0a3575d2b2ab9200e2ce023ed14ab8ffe77675 60B
0a3575d2b2ab9200e2ce023ed14ab8ffe77675 60B
0a3575d2b2ab9200e2ce023ed14ab8ffe77675 60B
0a3575d2b2ab9200e2ce023ed14ab8ffe77675 60B
0cc1e238d209cb8b958064565218519211afee 374B
0cc1e238d209cb8b958064565218519211afee 374B
0cc1e238d209cb8b958064565218519211afee 374B
0cc1e238d209cb8b958064565218519211afee 374B
0cc1e238d209cb8b958064565218519211afee 374B
0cc1e238d209cb8b958064565218519211afee 374B
0d783d34dd1ddc510db452a7fe2d30df5548b2 53B
0d783d34dd1ddc510db452a7fe2d30df5548b2 53B
0d783d34dd1ddc510db452a7fe2d30df5548b2 53B
0d783d34dd1ddc510db452a7fe2d30df5548b2 53B
0d783d34dd1ddc510db452a7fe2d30df5548b2 53B
0d783d34dd1ddc510db452a7fe2d30df5548b2 53B
0e7fb6cc1569b09182ed322d8f1a2b8989a414 88B
0e7fb6cc1569b09182ed322d8f1a2b8989a414 88B
0e7fb6cc1569b09182ed322d8f1a2b8989a414 88B
0e7fb6cc1569b09182ed322d8f1a2b8989a414 88B
0e7fb6cc1569b09182ed322d8f1a2b8989a414 88B
0e7fb6cc1569b09182ed322d8f1a2b8989a414 88B
0edd331ad6221816b28b46490653bfc911504b 66B
0edd331ad6221816b28b46490653bfc911504b 66B
0edd331ad6221816b28b46490653bfc911504b 66B
0edd331ad6221816b28b46490653bfc911504b 66B
0edd331ad6221816b28b46490653bfc911504b 66B
共 4489 条
- 1
- 2
- 3
- 4
- 5
- 6
- 45
资源评论
LMNCNU
- 粉丝: 3
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Spring Boot和MyBatis的社区问答系统.zip
- (源码)基于Spring Boot和WebSocket的人事管理系统.zip
- (源码)基于Spring Boot框架的云网页管理系统.zip
- (源码)基于Maude和深度强化学习的智能体验证系统.zip
- (源码)基于C语言的Papageno字符序列处理系统.zip
- (源码)基于Arduino的水质监测与控制系统.zip
- (源码)基于物联网的智能家居门锁系统.zip
- (源码)基于Python和FastAPI的Squint数据检索系统.zip
- (源码)基于Arduino的图片绘制系统.zip
- (源码)基于C++的ARMA53贪吃蛇游戏系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功