From d80a484d7e8341a383966400b484a72410fae618 Mon Sep 17 00:00:00 2001 From: Grief Date: Sun, 25 Aug 2024 01:40:44 +0100 Subject: [PATCH] PATH --- README.md | 5 +++++ hooks/install/install-starship.sh | 3 +++ hooks/shell/00-env.sh | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 hooks/install/install-starship.sh create mode 100644 hooks/shell/00-env.sh diff --git a/README.md b/README.md index e69de29..bfa0550 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,5 @@ +Install using +```shell +git clone https://grief.ftp.sh/gitea/Grief/murex.git ~/.murex +~/.murex/hook install +``` diff --git a/hooks/install/install-starship.sh b/hooks/install/install-starship.sh new file mode 100644 index 0000000..d4a6ee3 --- /dev/null +++ b/hooks/install/install-starship.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +BIN_DIR=~/.murex/bin sh -c "$(curl -fsSL https://starship.rs/install.sh)" diff --git a/hooks/shell/00-env.sh b/hooks/shell/00-env.sh new file mode 100644 index 0000000..111f783 --- /dev/null +++ b/hooks/shell/00-env.sh @@ -0,0 +1,8 @@ +murex-path-add() { + case "${PATH}" in + *"${1}"*);; + *) export PATH="${1}:${PATH}" + esac +} + +murex-path-add "${MUREX}/bin:${MUREX}/private/bin"