Include fzf extras with fzf install

main
Buddy Sandidge 2 years ago
parent 8bea3a39b5
commit 30e1ffca6d

@ -4,9 +4,26 @@ source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
APP=fzf
VERSION=${VERSION:-0.38.0}
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
URL=https://github.com/junegunn/fzf/releases/download/${VERSION}/fzf-${VERSION}-$(get_os)_$(get_arch).tar.gz
extract_tarball "${URL}" "${DEST}/${VERSION}"
set_current_link "${DEST}" "${VERSION}"
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
APP=fzf-extra
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
URL=https://github.com/junegunn/fzf/archive/refs/tags/${VERSION}.tar.gz
extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-components=1"
set_current_link "${DEST}" "${VERSION}"
set_link "${XDG_BIN_HOME}/fzf-tmux" "${DEST}" bin/fzf-tmux
set_link "${XDG_DATA_HOME}/man/man1/fzf-tmux.1" "${DEST}" man/man1/fzf-tmux.1
set_link "${XDG_DATA_HOME}/man/man1/fzf.1" "${DEST}" man/man1/fzf.1
set_link "${XDG_CONFIG_HOME}/bash/bashrc.d/fzf-completion.sh" "${DEST}" shell/completion.bash
set_link "${XDG_CONFIG_HOME}/bash/bashrc.d/fzf-key-bindings.sh" "${DEST}" shell/key-bindings.bash
set_link "${XDG_CONFIG_HOME}/fish/functions/fzf-key-bindings.fish" "${DEST}" shell/key-bindings.fish
set_link "${XDG_CONFIG_HOME}/fish/functions/fzf-key-bindings.fish" "${DEST}" shell/key-bindings.fish
set_link "${XDG_CONFIG_HOME}/zsh/zshrc.d/fzf-completion.zsh" "${DEST}" shell/completion.zsh
set_link "${XDG_CONFIG_HOME}/zsh/zshrc.d/fzf-key-bindings.zsh" "${DEST}" shell/key-bindings.zsh

Loading…
Cancel
Save