Update: add a script to attach to the Console + add the same "header"
This commit is contained in:
parent
c0a2e941fb
commit
79ef3fdfd0
8 changed files with 233 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
# Injected by Nix
|
||||
RSYNC_BIN="@RSYNC_BIN@"
|
||||
DATA_DIR="@DATA_DIR@"
|
||||
|
|
@ -22,6 +23,7 @@ BZIP2_BIN="@BZIP2_BIN@"
|
|||
XZ_BIN="@XZ_BIN@"
|
||||
WC_BIN="@WC_BIN@"
|
||||
FIND_BIN="@FIND_BIN@"
|
||||
TMUX_BIN="@TMUX_BIN@"
|
||||
|
||||
|
||||
# Convenience wrappers
|
||||
|
|
@ -40,22 +42,30 @@ bzip2_cmd="$BZIP2_BIN"
|
|||
xz_cmd="$XZ_BIN"
|
||||
wc_cmd="$WC_BIN"
|
||||
find_cmd="$FIND_BIN"
|
||||
|
||||
tmux_cmd="$TMUX_BIN"
|
||||
|
||||
# PATH extension
|
||||
# (only figured that out later if you add it here it can actually just use the bin)
|
||||
# So you can easily just switch out the "*_cmd" with the "normal" name
|
||||
# Extend PATH with all injected binaries so we can call them directly
|
||||
for bin in \
|
||||
"$RSYNC_BIN" \
|
||||
"$MCSTATUS_BIN" \
|
||||
"$MCRCON_BIN" \
|
||||
"$AWK_BIN" \
|
||||
"$TAR_BIN" \
|
||||
"$ZIP_BIN" \
|
||||
"$UNZIP_BIN" \
|
||||
"$GZIP_BIN" \
|
||||
"$ZSTD_BIN" \
|
||||
"$AWK_BIN" \
|
||||
"$PV_BIN" \
|
||||
"$DU_BIN" \
|
||||
"$BZIP2_BIN" \
|
||||
"$XZ_BIN" \
|
||||
"$WC_BIN" \
|
||||
"$FIND_BIN"
|
||||
"$FIND_BIN" \
|
||||
"$TMUX_BIN"
|
||||
|
||||
do
|
||||
export PATH="$(dirname "$bin"):$PATH"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue