Skip to content

Commit

Permalink
feat: sorted tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelLarkin committed Feb 2, 2024
1 parent 49463b6 commit 9ee8103
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 129 deletions.
156 changes: 78 additions & 78 deletions taskfiles/compiled_essentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,57 @@ tasks:
- tig
- ugrep

htop:
desc: >
[htop - GitHub](https://github.com/htop-dev/htop):
is a cross-platform interactive process viewer.
cmds:
- |
curl \
--create-dirs --fail --location \
--output "htop-$VERSION.tar.xz" \
"https://github.com/htop-dev/htop/releases/download/$VERSION/htop-$VERSION.tar.xz"
- defer: rm htop-$VERSION.tar.xz
- tar xf htop-$VERSION.tar.xz
- defer: rm -fr htop-$VERSION
- |
cd htop-$VERSION
./autogen.sh
./configure --prefix={{.INSTALL_DIR}}
\make -j $(nproc) install
dir: $HOME/tmp
env:
VERSION: 3.2.2
generates:
- "{{.BIN_DIR}}/htop"
status:
- which htop
preconditions:
- which make

hyperfine:
desc: >
[hyperfine - GitHub](https://github.com/sharkdp/hyperfine):
A command-line benchmarking tool.
NOTE: probably already install by `cargo install hyperfine`.
cmds:
- |
curl \
--create-dirs --fail --location \
--output hyperfine-v$VERSION-x86_64-unknown-linux-musl.tar.gz \
"https://github.com/sharkdp/hyperfine/releases/download/v$VERSION/hyperfine-v$VERSION-x86_64-unknown-linux-musl.tar.gz"
- defer: rm hyperfine-v$VERSION-x86_64-unknown-linux-musl.tar.gz
- tar xf hyperfine-v$VERSION-x86_64-unknown-linux-musl.tar.gz
- defer: rm -fr hyperfine-v$VERSION-x86_64-unknown-linux-musl
- cp hyperfine-v$VERSION-x86_64-unknown-linux-musl/hyperfine "{{.BIN_DIR}}"
dir: "{{.HOME}}/tmp"
env:
VERSION: 1.12.0
generates:
- "{{.BIN_DIR}}/hyperfine"
status:
- which hyperfine

jq:
desc: >
[jq - GitHub](https://stedolan.github.io/jq/): jq is a lightweight and flexible command-line JSON processor.
Expand Down Expand Up @@ -84,6 +135,33 @@ tasks:
preconditions:
- which make

parallel:
desc: >
[parallel - GNU parallel](https://www.gnu.org/software/parallel/):
is a shell tool for executing jobs in parallel using one or more computers.
cmds:
- |
curl \
--create-dirs --fail --location \
--output parallel-$VERSION.tar.bz2 \
"https://ftp.gnu.org/gnu/parallel/parallel-$VERSION.tar.bz2"
- defer: rm parallel-$VERSION.tar.bz2
- tar xf parallel-$VERSION.tar.bz2
- defer: rm -fr parallel-$VERSION
- |
cd parallel-$VERSION
./configure --prefix={{.INSTALL_DIR}}"
\make -j $(nproc) install
dir: "{{.HOME}}/tmp"
env:
VERSION: 20231022
generates:
- "{{.BIN_DIR}}/parallel"
status:
- which parallel
preconditions:
- which make

tig:
desc: >
Install tig
Expand Down Expand Up @@ -121,34 +199,6 @@ tasks:
preconditions:
- which make

htop:
desc: >
[htop - GitHub](https://github.com/htop-dev/htop):
is a cross-platform interactive process viewer.
cmds:
- |
curl \
--create-dirs --fail --location \
--output "htop-$VERSION.tar.xz" \
"https://github.com/htop-dev/htop/releases/download/$VERSION/htop-$VERSION.tar.xz"
- defer: rm htop-$VERSION.tar.xz
- tar xf htop-$VERSION.tar.xz
- defer: rm -fr htop-$VERSION
- |
cd htop-$VERSION
./autogen.sh
./configure --prefix={{.INSTALL_DIR}}
\make -j $(nproc) install
dir: $HOME/tmp
env:
VERSION: 3.2.2
generates:
- "{{.BIN_DIR}}/htop"
status:
- which htop
preconditions:
- which make

ugrep:
desc: >
[ug/ugrep - GitHub](https://github.com/Genivia/ugrep):
Expand All @@ -174,53 +224,3 @@ tasks:
- which ugrep
preconditions:
- which make

parallel:
desc: >
[parallel - GNU parallel](https://www.gnu.org/software/parallel/):
is a shell tool for executing jobs in parallel using one or more computers.
cmds:
- |
curl \
--create-dirs --fail --location \
--output parallel-$VERSION.tar.bz2 \
"https://ftp.gnu.org/gnu/parallel/parallel-$VERSION.tar.bz2"
- defer: rm parallel-$VERSION.tar.bz2
- tar xf parallel-$VERSION.tar.bz2
- defer: rm -fr parallel-$VERSION
- |
cd parallel-$VERSION
./configure --prefix={{.INSTALL_DIR}}"
\make -j $(nproc) install
dir: "{{.HOME}}/tmp"
env:
VERSION: 20231022
generates:
- "{{.BIN_DIR}}/parallel"
status:
- which parallel
preconditions:
- which make

hyperfine:
desc: >
[hyperfine - GitHub](https://github.com/sharkdp/hyperfine):
A command-line benchmarking tool.
NOTE: probably already install by `cargo install hyperfine`.
cmds:
- |
curl \
--create-dirs --fail --location \
--output hyperfine-v$VERSION-x86_64-unknown-linux-musl.tar.gz \
"https://github.com/sharkdp/hyperfine/releases/download/v$VERSION/hyperfine-v$VERSION-x86_64-unknown-linux-musl.tar.gz"
- defer: rm hyperfine-v$VERSION-x86_64-unknown-linux-musl.tar.gz
- tar xf hyperfine-v$VERSION-x86_64-unknown-linux-musl.tar.gz
- defer: rm -fr hyperfine-v$VERSION-x86_64-unknown-linux-musl
- cp hyperfine-v$VERSION-x86_64-unknown-linux-musl/hyperfine "{{.BIN_DIR}}"
dir: "{{.HOME}}/tmp"
env:
VERSION: 1.12.0
generates:
- "{{.BIN_DIR}}/hyperfine"
status:
- which hyperfine
62 changes: 31 additions & 31 deletions taskfiles/fzf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ tasks:
- fzf-tmux
- shell_completion

forgit:
desc: >
[forgit - GitHub](https://github.com/wfxr/forgit):
A utility tool powered by fzf for using git interactively.
cmd: >
curl \
--create-dirs --fail --location \
--output {{.BIN_DIR}}/'#1' \
'https://raw.githubusercontent.com/wfxr/forgit/master/bin/{git-forgit}'
generates:
- "{{.BIN_DIR}}/forgit"
status:
- which forgit

fzf:
desc: >
[fzf - GitHub](https://github.com/junegunn/fzf):
Expand All @@ -24,6 +38,22 @@ tasks:
status:
- which fzf

fzf-git:
desc: >
[fzf-git.sh - GitHub](https://github.com/junegunn/fzf-git.sh):
bash and zsh key bindings for Git objects, powered by fzf
deps:
- fzf
cmd: |
curl \
--create-dirs --fail --location \
--output {{.BASH_COMPLETION_D}}}/'#1' \
'https://raw.githubusercontent.com/junegunn/fzf-git.sh/main/{fzf-git.sh}'
generates:
- "{{.BASH_COMPLETION_D}}/fzf-git.sh"
status:
- test -f {{.BASH_COMPLETION_D}}/fzf-git.sh

fzf-tmux:
desc: >
Install fzf's integration with tmux.
Expand All @@ -41,20 +71,6 @@ tasks:
status:
- which fzf-tmux

forgit:
desc: >
[forgit - GitHub](https://github.com/wfxr/forgit):
A utility tool powered by fzf for using git interactively.
cmd: >
curl \
--create-dirs --fail --location \
--output {{.BIN_DIR}}/'#1' \
'https://raw.githubusercontent.com/wfxr/forgit/master/bin/{git-forgit}'
generates:
- "{{.BIN_DIR}}/forgit"
status:
- which forgit

shell_completion:
desc: >
Install fzf's shell completion.
Expand All @@ -78,21 +94,5 @@ tasks:
- "{{.BASH_COMPLETION_D}}/completion.bash"
- "{{.BASH_COMPLETION_D}}/key-bindings.bash"
status:
- test -f {{.BASH_COMPLETION_D}}/completion.bash
- test -f {{.BASH_COMPLETION_D}}/completion.bash
- test -f {{.BASH_COMPLETION_D}}/key-bindings.bash

fzf-git:
desc: >
[fzf-git.sh - GitHub](https://github.com/junegunn/fzf-git.sh):
bash and zsh key bindings for Git objects, powered by fzf
deps:
- fzf
cmd: |
curl \
--create-dirs --fail --location \
--output {{.BASH_COMPLETION_D}}}/'#1' \
'https://raw.githubusercontent.com/junegunn/fzf-git.sh/main/{fzf-git.sh}'
generates:
- "{{.BASH_COMPLETION_D}}/fzf-git.sh"
status:
- test -f {{.BASH_COMPLETION_D}}/fzf-git.sh
20 changes: 10 additions & 10 deletions taskfiles/tmux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ env:
tasks:
default:
deps:
- shell_completion
- plugin_manager

shell_completion:
desc: >
Install tmux shell completion
cmd: |
curl \
--create-dirs --fail --location \
--output {{.BASH_COMPLETION_D}}/'#1' \
'https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/master/completions/{tmux}'
- shell_completion

plugin_manager:
desc: >
Expand All @@ -27,3 +18,12 @@ tasks:
https://github.com/tmux-plugins/tpm \
{{.HOME}}/.tmux/plugins/tpm \
|| ( cd {{.HOME}}/.tmux/plugins/tpm && git pull; )
shell_completion:
desc: >
Install tmux shell completion
cmd: |
curl \
--create-dirs --fail --location \
--output {{.BASH_COMPLETION_D}}/'#1' \
'https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/master/completions/{tmux}'
20 changes: 10 additions & 10 deletions taskfiles/vim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,8 @@ version: '3'
tasks:
default:
deps:
- plugin_manager
- plugin_install

plugin_manager:
desc: >
Intall plug.vim
cmd: |
curl \
--create-dirs --fail --location \
--output {{.HOME}}/.vim/autoload/plug.vim \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- plugin_manager

plugin_install:
desc: >
Expand All @@ -28,3 +19,12 @@ tasks:
preconditions:
- which npm
- which node

plugin_manager:
desc: >
Intall plug.vim
cmd: |
curl \
--create-dirs --fail --location \
--output {{.HOME}}/.vim/autoload/plug.vim \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

0 comments on commit 9ee8103

Please sign in to comment.