mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
feat(just): Add justfiles for setup
This commit is contained in:
parent
d43a4b7106
commit
dae3143f86
12 changed files with 310 additions and 253 deletions
26
.just.d/cmds.just
Normal file
26
.just.d/cmds.just
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
# Sudo and coreutils are required
|
||||
LN := \
|
||||
if os_family() == "windows" {
|
||||
"sudo ln -sf"
|
||||
} else {
|
||||
"ln -sf"
|
||||
}
|
||||
CLIP := \
|
||||
if os() == "windows" { "clip.exe" } \
|
||||
else if os() == "linux" { "wl-copy" } \
|
||||
else if os() == "macos" { "pbcopy" } \
|
||||
else { "" }
|
||||
|
||||
|
||||
CURL := \
|
||||
if os() == "windows" { "Invoke-WebRequest" } \
|
||||
else if os() == "linux" { "curl" } \
|
||||
else if os() == "macos" { "curl" } \
|
||||
else { "" }
|
||||
|
||||
CURL_OUT := \
|
||||
if os() == "windows" { "-OutFile" } \
|
||||
else if os() == "linux" { "-o" } \
|
||||
else if os() == "macos" { "-o" } \
|
||||
else { "" }
|
||||
Loading…
Add table
Add a link
Reference in a new issue