forked from Job79/devcontainer
Updates
This commit is contained in:
22
containers/base/config/bashrc
Normal file
22
containers/base/config/bashrc
Normal file
@@ -0,0 +1,22 @@
|
||||
. /etc/bashrc
|
||||
|
||||
# === environment ===
|
||||
export EDITOR=hx \
|
||||
WAYLAND_DISPLAY=wayland-0 \
|
||||
XDG_RUNTIME_DIR=/run/user/1000 \
|
||||
SSH_AUTH_SOCK=/run/user/1000/ssh-auth-sock \
|
||||
PS1="\[\e[30;46m\] \h | \w \[\e[0;36m\]\[\e[m\] " \
|
||||
TZ="Europe/Amsterdam" \
|
||||
SHELL="/bin/bash"
|
||||
|
||||
# === aliases and functions ===
|
||||
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"
|
||||
|
||||
# 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"
|
||||
4
containers/base/config/bin/host
Executable file
4
containers/base/config/bin/host
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/bus
|
||||
host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" \
|
||||
$([ "$(basename "$0")" != "host" ] && echo "$(basename "$0")") "$@"
|
||||
12
containers/base/config/git
Normal file
12
containers/base/config/git
Normal file
@@ -0,0 +1,12 @@
|
||||
[user]
|
||||
email = maurict@pm.me
|
||||
name = Maurice
|
||||
signingKey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGL/am4HDyfV0OWwaI3CeKGypBdzNXOYSbcnm6tK/VB+ maurict@pm.me
|
||||
[gpg]
|
||||
format = ssh
|
||||
[commit]
|
||||
gpgSign = true
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
[init]
|
||||
defaultBranch = main
|
||||
7
containers/base/config/helix/config.toml
Normal file
7
containers/base/config/helix/config.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
theme = "dark_plus"
|
||||
|
||||
[editor]
|
||||
true-color = true
|
||||
|
||||
[editor.file-picker]
|
||||
hidden = false
|
||||
12
containers/base/config/helix/languages.toml
Normal file
12
containers/base/config/helix/languages.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
# C#
|
||||
[language-server.omnisharp]
|
||||
command = "/home/user/.omnisharp/OmniSharp"
|
||||
args = [ "--languageserver" ]
|
||||
|
||||
# Rust
|
||||
[language-server.rust-analyzer.config.check]
|
||||
command = "clippy"
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
formatter = { command = "rustfmt" }
|
||||
Reference in New Issue
Block a user