Big boom
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
. /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 \
|
||||
CARGO_HOME=/usr/local/rust \
|
||||
RUSTUP_HOME=/usr/local/rust \
|
||||
GOPATH=/usr/local/go \
|
||||
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"
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
export DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/bus"
|
||||
|
||||
cmd="${0##*/}"
|
||||
[[ "$cmd" == "host" ]] && unset cmd
|
||||
exec host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" ${cmd:+"$cmd"} "$@
|
||||
@@ -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
|
||||
@@ -0,0 +1,7 @@
|
||||
theme = "dark_plus"
|
||||
|
||||
[editor]
|
||||
true-color = true
|
||||
|
||||
[editor.file-picker]
|
||||
hidden = false
|
||||
@@ -0,0 +1,33 @@
|
||||
# C#
|
||||
[language-server.omnisharp]
|
||||
command = "/usr/local/bin/omnisharp/OmniSharp"
|
||||
args = [ "--languageserver" ]
|
||||
|
||||
# Rust
|
||||
[language-server.rust-analyzer.config.check]
|
||||
command = "clippy"
|
||||
|
||||
[language-server.deno-lsp]
|
||||
command = "deno"
|
||||
args = ["lsp"]
|
||||
config.deno.enable = true
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
formatter = { command = "rustfmt" }
|
||||
|
||||
# TS
|
||||
[[language]]
|
||||
name = "typescript"
|
||||
roots = ["deno.json", "deno.jsonc", "package.json"]
|
||||
file-types = ["ts", "tsx"]
|
||||
auto-format = true
|
||||
language-servers = ["deno-lsp"]
|
||||
|
||||
# JS
|
||||
[[language]]
|
||||
name = "javascript"
|
||||
roots = ["deno.json", "deno.jsonc", "package.json"]
|
||||
file-types = ["js", "jsx"]
|
||||
auto-format = true
|
||||
language-servers = ["deno-lsp"]
|
||||
Reference in New Issue
Block a user