Skip to content

Commit

Permalink
[Repo] Add 'sharkdp/fd' to 'tools' repository
Browse files Browse the repository at this point in the history
Icikowski committed May 21, 2022

Verified

This commit was signed with the committer’s verified signature.
Icikowski Piotr Icikowski
1 parent 48bd696 commit 8eede5a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions repositories/tools.yaml
Original file line number Diff line number Diff line change
@@ -46,6 +46,31 @@ contents:
- chmod a+x /usr/local/bin/hexyl
uninstall_scenario:
- rm -rf /usr/local/bin/hexyl
- name: fd
description: A simple, fast and user-friendly alternative to 'find'
newest_version_check:
- curl -Ls -o /dev/null -X HEAD "https://github.com/sharkdp/fd/releases/latest" -w %{url_effective} | sed 's#.*/##; s/v//'
current_version_check:
- fd --version | sed 's/fd //'
install_scenario:
- wget -qL -O ${TEMP}/fd.tgz "https://github.com/sharkdp/fd/releases/download/v${LATEST_VERSION}/fd-v${LATEST_VERSION}-x86_64-unknown-linux-musl.tar.gz"
- (cd ${TEMP}; tar -xzf fd.tgz --strip-components=1)
- cp ${TEMP}/fd /usr/local/bin/fd
- chmod a+x /usr/local/bin/fd
- cp ${TEMP}/autocomplete/fd.bash /etc/bash_completion.d/fd
- chmod a+x /etc/bash_completion.d/fd
update_scenario:
- rm -rf /etc/bash_completion.d/fd
- rm -rf /usr/local/bin/fd
- wget -qL -O ${TEMP}/fd.tgz "https://github.com/sharkdp/fd/releases/download/v${LATEST_VERSION}/fd-v${LATEST_VERSION}-x86_64-unknown-linux-musl.tar.gz"
- (cd ${TEMP}; tar -xzf fd.tgz --strip-components=1)
- cp ${TEMP}/fd /usr/local/bin/fd
- chmod a+x /usr/local/bin/fd
- cp ${TEMP}/autocomplete/fd.bash /etc/bash_completion.d/fd
- chmod a+x /etc/bash_completion.d/fd
uninstall_scenario:
- rm -rf /etc/bash_completion.d/fd
- rm -rf /usr/local/bin/fd
- name: lazygit
description: simple terminal UI for git commands
newest_version_check:

0 comments on commit 8eede5a

Please sign in to comment.