atweiden / fzf-extras

Key bindings from fzf wiki
MIT License
192 stars 23 forks source link

How to use it ? #2

Closed collegeimprovements closed 8 years ago

collegeimprovements commented 8 years ago

Would it be like putting fzf-extras.sh adn fzf-extras.zsh in my path location?

atweiden commented 8 years ago

Here's an installation script:

#!/bin/bash

# get fzf-extras
git clone https://github.com/atweiden/fzf-extras ~/.fzf-extras

# bash setup
cat <<'EOF' >> ~/.bashrc
[[ -e ~/.fzf-extras/fzf-extras.sh ]] && . ~/.fzf-extras/fzf-extras.sh
EOF

# zsh setup
cat <<'EOF' >> ~/.zshrc
[[ -e ~/.fzf-extras/fzf-extras.zsh ]] && . ~/.fzf-extras/fzf-extras.zsh
EOF

Source fzf-extras.sh if your $SHELL is bash. Source fzf-extras.zsh if your $SHELL is zsh. On Arch, I'm installing to /etc/profile.d.

collegeimprovements commented 8 years ago

Unfortunately I'm getting command not found error.

atweiden commented 8 years ago

What's your OS? Do you have Git installed?

collegeimprovements commented 8 years ago

I run the script. It downloaded .fzf-extras to my home directory. And added [[ -e ~/.fzf-extras/fzf-extras.zsh ]] && . ~/.fzf-extras/fzf-extras.zsh line to my .zshrc

How can I source it ?

atweiden commented 8 years ago

Your shell should already be sourcing ~/.zshrc if I'm not mistaken (not a zsh user myself). This repo contains bindings mainly for Bash. You won't get much out of fzf-extras by using zsh at the moment.

collegeimprovements commented 8 years ago

hmmm. Thanks :) I should learn and appreciate about what I already have :)