forked from Job79/devcontainer
Tweaks
This commit is contained in:
@@ -5,7 +5,7 @@ RUN dnf update -y && \
|
||||
dnf copr enable -y atim/lazygit && \
|
||||
dnf -y install procps ping bash-completion glibc-langpack-en \
|
||||
host-spawn dbus-launch \
|
||||
zoxide git npm neovim awk jq unzip fd-find lazygit
|
||||
git pnpm helix
|
||||
|
||||
# === setup user ===
|
||||
RUN useradd -ms /bin/bash user && \
|
||||
@@ -16,9 +16,15 @@ USER user
|
||||
WORKDIR /home/user
|
||||
RUN mkdir .config .local .cache
|
||||
|
||||
RUN git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim
|
||||
COPY --chown=user:user config/bashrc .bashrc
|
||||
COPY --chown=user:user config/git .config/git/config
|
||||
COPY config/bin /usr/local/bin
|
||||
|
||||
# === Add host entry for podman ===
|
||||
RUN ln -s /usr/local/bin/host /usr/local/bin/podman
|
||||
|
||||
# === Setup PNPM & install language servers ===
|
||||
RUN /bin/bash -c "pnpm setup && . /home/user/.bashrc && pnpm i -g deno bash-language-server vscode-langservers-extracted dockerfile-language-server-nodejs \
|
||||
typescript typescript-language-server"
|
||||
|
||||
VOLUME /home/user
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
. /etc/bashrc
|
||||
|
||||
# === environment ===
|
||||
export EDITOR=nvim \
|
||||
export EDITOR=hx \
|
||||
WAYLAND_DISPLAY=wayland-0 \
|
||||
XDG_RUNTIME_DIR=/run/user/1000 \
|
||||
SSH_AUTH_SOCK=/run/user/1000/ssh-auth-sock \
|
||||
@@ -9,8 +9,13 @@ export EDITOR=nvim \
|
||||
TZ="Europe/Amsterdam"
|
||||
|
||||
# === aliases and functions ===
|
||||
alias vi=nvim
|
||||
post() { curl -sF "content=<-" "https://paste.plabble.org/$2?lang=$1" && echo; }
|
||||
pbcopy() { curl -sF "content=<-" "https://paste.plabble.org/$2?lang=$1" && echo; }
|
||||
alias random="cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-20} | head -n 1"
|
||||
|
||||
eval "$(zoxide init --cmd cd bash)"
|
||||
eval "$(fzf --bash)"
|
||||
# Git aliases
|
||||
alias gc="git commit -m"
|
||||
alias ga="git add -A"
|
||||
alias gf="git fetch"
|
||||
alias gp="git pull"
|
||||
alias gpp="git push"
|
||||
alias gs="git status"
|
||||
@@ -1 +0,0 @@
|
||||
host
|
||||
@@ -1 +0,0 @@
|
||||
host
|
||||
@@ -1,7 +1,7 @@
|
||||
[user]
|
||||
email = job@plabble.org
|
||||
name = Job79
|
||||
signingKey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPsqM6ABAaCTQZ+llFXD3CXrYYuIHDEnvz8IBbXddYEc job@plabble.org
|
||||
email = maurict@pm.me
|
||||
name = Maurice
|
||||
signingKey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGL/am4HDyfV0OWwaI3CeKGypBdzNXOYSbcnm6tK/VB+ maurict@pm.me
|
||||
[gpg]
|
||||
format = ssh
|
||||
[commit]
|
||||
@@ -9,4 +9,4 @@
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
[init]
|
||||
defaultBranch = main
|
||||
defaultBranch = main
|
||||
Reference in New Issue
Block a user