m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

Add fco, fssh (tested on OSX)

Jamie Schembri
2016-10-30 10:55:10 +01:00
parent 2da179f165
commit b03263718c

@@ -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
```