dev container and git config
This commit is contained in:
@@ -40,7 +40,11 @@ function dev
|
||||
alsa-lib-devel \
|
||||
systemd-devel \
|
||||
libxkbcommon \
|
||||
libxkbcommon-devel
|
||||
libxkbcommon-devel \
|
||||
libappindicator-gtk3-devel \
|
||||
librsvg2-devel \
|
||||
libxdo-devel \
|
||||
nodejs24
|
||||
|
||||
if distrobox list --no-color | string match -q "*| $name *"
|
||||
distrobox enter $name
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
[user]
|
||||
name = fe5hua
|
||||
email = git@fe5hua.de
|
||||
[init]
|
||||
defaultBranch = main
|
||||
@@ -11,8 +11,9 @@ export DEV_USER="$(basename "$DEV_HOME")"
|
||||
# Software directories
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
mkdir -p /opt/rustup /opt/cargo /opt/aseprite
|
||||
chown "$DEV_USER:$DEV_USER" /opt/rustup /opt/cargo /opt/aseprite
|
||||
mkdir -p /opt/rustup /opt/cargo /opt/aseprite /opt/dx /opt/npm-global
|
||||
chown -R "$DEV_USER:$DEV_USER" /opt/rustup /opt/cargo /opt/aseprite /opt/dx /opt/npm-global
|
||||
# TODO basically all commamd from here on need to run as $DEV_USER, but scrpt runs as root
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Fish configuration
|
||||
@@ -50,7 +51,7 @@ fi
|
||||
# Rust toolchain
|
||||
echo "Installing stable Rust toolchain..."
|
||||
|
||||
/opt/cargo/bin/rustup default stable
|
||||
/opt/cargo/bin/rustup default nightly
|
||||
|
||||
# Fish completions
|
||||
echo "Installing rustup Fish completion..."
|
||||
@@ -59,6 +60,23 @@ echo "Installing rustup Fish completion..."
|
||||
| tee /etc/fish/completions/rustup.fish >/dev/null
|
||||
|
||||
|
||||
# Dioxus CLI
|
||||
export DX_INSTALL=/opt/dx
|
||||
|
||||
if [[ ! -x /opt/cargo/bin/dx ]]; then
|
||||
echo "Installing dioxus cli..."
|
||||
|
||||
# TODO needs to run as user, not root
|
||||
curl -sSL https://dioxus.dev/install.sh | bash
|
||||
else
|
||||
echo "dioxus cli is already installed."
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# NodeJS and NPM
|
||||
# -----------------------------------------------------------------------------
|
||||
npm config set prefix '/opt/npm-global'
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Aseprite
|
||||
# -----------------------------------------------------------------------------
|
||||
@@ -155,7 +173,10 @@ for binary in \
|
||||
rust-gdb \
|
||||
rust-gdbgui \
|
||||
rust-lldb \
|
||||
rustup
|
||||
rustup \
|
||||
dx \
|
||||
npm \
|
||||
node
|
||||
do
|
||||
export_bin "$binary"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user