mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
move wrapper section down
18
Examples.md
18
Examples.md
@@ -411,15 +411,6 @@ frb() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Wrapper
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# fzf-wrapper
|
|
||||||
# https://github.com/D630/fzf-wrapper
|
|
||||||
% . fzf-wrapper
|
|
||||||
% [<ENV>...] __fzf_wrapper [<ARG>...]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Vagrant
|
### Vagrant
|
||||||
|
|
||||||
You must have [`jq`](https://github.com/stedolan/jq) installed on your computer in order to use this function.
|
You must have [`jq`](https://github.com/stedolan/jq) installed on your computer in order to use this function.
|
||||||
@@ -429,4 +420,13 @@ vs(){
|
|||||||
#List all vagrant boxes available in the system including its status, and try to access the selected one via ssh
|
#List all vagrant boxes available in the system including its status, and try to access the selected one via ssh
|
||||||
cd $(cat ~/.vagrant.d/data/machine-index/index | jq '.machines[] | {name, vagrantfile_path, state}' | jq '.name + "," + .state + "," + .vagrantfile_path'| sed 's/^"\(.*\)"$/\1/'| column -s, -t | sort -rk 2 | fzf | awk '{print $3}'); vagrant ssh
|
cd $(cat ~/.vagrant.d/data/machine-index/index | jq '.machines[] | {name, vagrantfile_path, state}' | jq '.name + "," + .state + "," + .vagrantfile_path'| sed 's/^"\(.*\)"$/\1/'| column -s, -t | sort -rk 2 | fzf | awk '{print $3}'); vagrant ssh
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Wrapper
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# fzf-wrapper
|
||||||
|
# https://github.com/D630/fzf-wrapper
|
||||||
|
% . fzf-wrapper
|
||||||
|
% [<ENV>...] __fzf_wrapper [<ARG>...]
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user