Closed collegeimprovements closed 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
.
Unfortunately I'm getting command not found error
.
What's your OS? Do you have Git installed?
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 ?
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.
hmmm. Thanks :) I should learn and appreciate about what I already have :)
Would it be like putting fzf-extras.sh adn fzf-extras.zsh in my path location?