Compare commits
2 Commits
da2cd09c65
...
cc6037a945
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc6037a945 | ||
|
|
836fb7bc50 |
4
justfile
4
justfile
@@ -14,9 +14,11 @@ setup-zig-lib:
|
||||
zig_download="$(mktemp --suffix=zig_download)"
|
||||
zig_download_url="$(curl -s https://ziglang.org/download/index.json |
|
||||
jq -r ".${zig_version}.[\"x86_64-linux\"].tarball")"
|
||||
zig_download_file="${zig_download_url##*/}"
|
||||
curl -s -o "${zig_download}" "${zig_download_url}"
|
||||
tar xvf "${zig_download}" -C ~/.local/zig >/dev/null
|
||||
ln -s ~/.local/zig/zig-x86_64-linux-0.16.0-dev.2694+74f361a5c ~/.local/zig/zig-bin
|
||||
rm -f ~/.local/zig/zig-bin
|
||||
ln -s ~/.local/zig/${zig_download_file%%.tar.xz} ~/.local/zig/zig-bin
|
||||
rm -f "${zig_download}"
|
||||
|
||||
setup-zls:
|
||||
|
||||
0
setup-bashrc.sh
Normal file → Executable file
0
setup-bashrc.sh
Normal file → Executable file
22
setup-k9s.sh
Normal file
22
setup-k9s.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if !(command -v yq &>/dev/null); then
|
||||
echo "yq is needed for config updates"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Grab gruvbox-material-dark-soft skin
|
||||
curl -so ~/.config/k9s/skins/gruvbox-material-dark-soft.yaml \
|
||||
'https://raw.githubusercontent.com/derailed/k9s/refs/heads/master/skins/gruvbox-material-dark-soft.yaml'
|
||||
|
||||
# Set k9s.ui.skin to gruvbox-material-dark-soft
|
||||
config_file=$(cat ~/.config/k9s/config.yaml | yq --yaml-output '.k9s.ui.skin |= ("gruvbox-material-dark-soft")')
|
||||
|
||||
# Set k9s.ui.logoless
|
||||
config_file=$(echo "${config_file}" | yq --yaml-output '.k9s.ui.logoless |= (true)')
|
||||
|
||||
# Set k9s.ui.splashless
|
||||
config_file=$(echo "${config_file}" | yq --yaml-output '.k9s.ui.splashless |= (true)')
|
||||
|
||||
# Setting config file contents
|
||||
echo "${config_file}" >~/.config/k9s/config.yaml
|
||||
Reference in New Issue
Block a user