mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
Add fco, fssh (tested on OSX)
@@ -1,2 +1,17 @@
|
|||||||
Examples for fish shell
|
Examples for fish shell
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
### Git
|
||||||
|
|
||||||
|
```
|
||||||
|
function fco -d "Fuzzy-find and checkout a branch"
|
||||||
|
git branch --all | grep -v HEAD | string trim | fzf | xargs git checkout
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
|
### SSH
|
||||||
|
```
|
||||||
|
function fssh -d "Fuzzy-find ssh host and ssh into it"
|
||||||
|
ag '^host [^*]' ~/.ssh/config | cut -d ' ' -f 2 | fzf | xargs -o ssh
|
||||||
|
end
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user