소스 검색

adding fuzzy finder

Mike Ramthun 2 주 전
부모
커밋
c088d155ec
5개의 변경된 파일23개의 추가작업 그리고 2개의 파일을 삭제
  1. 14 0
      10-fzf.sh
  2. 1 1
      10-rust-apps.sh
  3. 2 0
      Dockerfile
  4. 1 1
      docker-test
  5. 5 0
      test.sh

+ 14 - 0
10-fzf.sh

@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+VERSION=0.67.0
+TARBALL=fzf-$VERSION-linux_amd64.tar.gz
+
+curl -LO https://github.com/junegunn/fzf/releases/download/v$VERSION/$TARBALL
+
+tar -C "$HOME"/.local/bin -xzf $TARBALL
+rm $TARBALL
+
+echo 'eval "$(fzf --bash)"' > "$HOME"/.bashrc.d/fzf.sh
+

+ 1 - 1
10-rust-apps.sh

@@ -18,5 +18,5 @@ cargo install fd-find
 cargo install ripgrep --features 'pcre2'
 
 # shell prompt replacement
-cargo +1.89 install starship
+cargo +1.90 install starship
 echo 'eval "$(starship init bash)"' > "$BASHRCD"/starship.sh

+ 2 - 0
Dockerfile

@@ -3,4 +3,6 @@ FROM debian:trixie-slim
 ADD . /scripts
 WORKDIR /scripts
 
+RUN apt update
+RUN apt install -y git curl build-essential clangd ca-certificates automake
  

+ 1 - 1
docker-test

@@ -2,7 +2,7 @@
 
 set -e
 
-for BOOT_SCRIPT in *.sh; do
+for BOOT_SCRIPT in [0-9][0-9]-*.sh; do
   echo EXECUTE: "${BOOT_SCRIPT}"
   trap 'echo "Error: A command failed on line $LINENO in $BOOT_SCRIPT." >&2' ERR
   bash -l "${BOOT_SCRIPT}"

+ 5 - 0
test.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+docker build --tag bootstrap .
+docker run --rm bootstrap /scripts/docker-test
+