mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-12-29 12:32:40 +00:00
commit
842c03bd84
11
README.md
11
README.md
@ -78,6 +78,17 @@ alias zq="zoxide query"
|
||||
alias zr="zoxide remove"
|
||||
```
|
||||
|
||||
#### fish
|
||||
Using [fisher](https://github.com/jorgebucaran/fisher):
|
||||
```sh
|
||||
fisher add ajeetdsouza/zoxide
|
||||
```
|
||||
|
||||
Using [oh-my-fish](https://github.com/oh-my-fish/oh-my-fish):
|
||||
```sh
|
||||
omf install https://github.com/ajeetdsouza/zoxide
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
### Environment variables
|
||||
|
13
functions/z.fish
Normal file
13
functions/z.fish
Normal file
@ -0,0 +1,13 @@
|
||||
function z
|
||||
if test (count $argv) -gt 0
|
||||
set _Z_RESULT (zoxide query $argv)
|
||||
switch "$_Z_RESULT"
|
||||
case 'query: *'
|
||||
cd (string sub -s 8 -- "$_Z_RESULT")
|
||||
commandline -f repaint
|
||||
case '*'
|
||||
echo -n "$_Z_RESULT"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user