From 99d4c6f1d67c249e6b0fafb3f87e189787a96fd3 Mon Sep 17 00:00:00 2001 From: Nikita Hasert Date: Fri, 11 Apr 2025 22:31:44 +0200 Subject: [PATCH] Add initial scripts --- enable_jp_locale | 10 ++++++++++ install_all | 11 +++++++++++ install_lein | 10 ++++++++++ install_neovim | 13 +++++++++++++ install_podman-compose | 10 ++++++++++ install_xclip | 10 ++++++++++ 6 files changed, 64 insertions(+) create mode 100755 enable_jp_locale create mode 100755 install_all create mode 100755 install_lein create mode 100755 install_neovim create mode 100755 install_podman-compose create mode 100755 install_xclip diff --git a/enable_jp_locale b/enable_jp_locale new file mode 100755 index 0000000..f150a47 --- /dev/null +++ b/enable_jp_locale @@ -0,0 +1,10 @@ +#!/bin/bash + +enable_jp_locale() { + echo "Enabling ja_JP locale..." + sudo sed -i "s%#ja_JP.UTF-8 UTF-8%ja_JP.UTF-8 UTF-8%" /etc/locale.gen && locale-gen +} + +sudo steamos-readonly disable +enable_jp_locale +sudo steamos-readonly enable diff --git a/install_all b/install_all new file mode 100755 index 0000000..96d9aaf --- /dev/null +++ b/install_all @@ -0,0 +1,11 @@ +#!/bin/bash + +sudo pacman-key --init +sudo pacman-key --populate archlinux +sudo pacman-key --populate holo +sudo pacman-key --refresh-keys + +. install_lein +. install_neovim +. install_xclip +. install_podman-compose diff --git a/install_lein b/install_lein new file mode 100755 index 0000000..fde43f7 --- /dev/null +++ b/install_lein @@ -0,0 +1,10 @@ +#!/bin/bash + +install_lein() { + echo "Installing lein..." + lein="${HOME}/bin/lein" + curl httpis://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o "$lein" + chmod u+x "$lein" +} + +install_lein diff --git a/install_neovim b/install_neovim new file mode 100755 index 0000000..c1e1e78 --- /dev/null +++ b/install_neovim @@ -0,0 +1,13 @@ +#!/bin/bash + +install_neovim() { + version=${1:-nightly} + echo "Installing nvim ${version}..." + nvim="${HOME}/bin/nvim" + nvimurl="https://github.com/neovim/neovim/releases/download/${version}/nvim-linux-x86_64.appimage" + mkdir -p "$(dirname "$nvim")" + curl -fL "$nvimurl" -o "$nvim" -z "$nvim" + chmod u+x "$nvim" +} + +install_neovim diff --git a/install_podman-compose b/install_podman-compose new file mode 100755 index 0000000..db0e683 --- /dev/null +++ b/install_podman-compose @@ -0,0 +1,10 @@ +#!/bin/bash + +install_pip() { + echo "Installing aardvark-dns and podman-compose..." + sudo pacman -S aardvark-dns podman-compose +} + +sudo steamos-readonly disable +install_pip +sudo steamos-readonly enable diff --git a/install_xclip b/install_xclip new file mode 100755 index 0000000..214ce97 --- /dev/null +++ b/install_xclip @@ -0,0 +1,10 @@ +#!/bin/bash + +install_xclip() { + echo "Installing xclip..." + sudo pacman -S xclip +} + +sudo steamos-readonly disable +install_xclip +sudo steamos-readonly enable