You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.5 KiB
Bash
30 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
|
|
|
APP=fzf
|
|
VERSION=${VERSION:-0.46.1}
|
|
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
|