Skip to content

Installation

ConnerWill edited this page Jul 14, 2023 · 10 revisions

Installation

Dependencies

  • fzf
  • yay

Make sure you have fzf and yay installed as they are the meat and potatoes of this script

fzf

sudo pacman -S fzf

yay

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Arch Linux

yay

yay -S yayfzf

Source

git clone https://github.com/ConnerWill/yayfzf.git
cd yayfzf
sudo make install

No Installation

Running directly

See also: Adding To PATH

git clone https://github.com/ConnerWill/yayfzf.git
cd yayfzf
./bin/yayfzf

Adding To $PATH

(Assuming ~/.bin is in your $PATH)

Symbolic linking to ~/.bin

ln -s ./bin/yayfzf ~/.bin/

Copy/Move to ~/.bin

cp ./bin/yayfzf ~/.bin/

Sourcing

See also: Adding To Shell Startup

git clone https://github.com/ConnerWill/yayfzf.git
cd yayfzf
source ./bin/yayfzf
yayfzf

Adding To Shell Startup

To run this script from anywhere as the current user without sourcing yayfzf every time a new shell starts, add a line to source the script in your shell startup files (.zshrc .bashrc) or symlink/move the script to a directory in your $PATH

Zsh

echo "source (PATH-TO-REPO)/yayfzf/bin/yayfzf" >> "${ZDOTDIR}/.zshrc"

Bash

echo 'source /yayfzf/bin/yayfzf' >> ~/.bashrc