feat: debian install, docker tests
This commit is contained in:
11
files/dot-config/.gitignore
vendored
Normal file
11
files/dot-config/.gitignore
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
**/coc
|
||||
**/configstore
|
||||
**/firebase
|
||||
**/gcloud
|
||||
**/gh
|
||||
**/helm
|
||||
**/htop
|
||||
**/procps
|
||||
**/stripe
|
||||
**/TabNine
|
||||
**/wslu
|
||||
6
files/dot-ssh/config
Normal file
6
files/dot-ssh/config
Normal file
@@ -0,0 +1,6 @@
|
||||
Host *
|
||||
IgnoreUnknown UseKeychain
|
||||
UseKeychain yes
|
||||
AddKeysToAgent yes
|
||||
IdentityFile ~/.ssh/id_ed25519
|
||||
|
||||
6
files/home/.bash_profile
Normal file
6
files/home/.bash_profile
Normal file
@@ -0,0 +1,6 @@
|
||||
# Load .profile, containing login, non-bash related initializations.
|
||||
[ -f "$HOME/.profile" ] && source "$HOME/.profile"
|
||||
|
||||
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
87
files/home/.gitconfig
Normal file
87
files/home/.gitconfig
Normal file
@@ -0,0 +1,87 @@
|
||||
[user]
|
||||
name = Andrejus
|
||||
email = git@andrejus.uk
|
||||
|
||||
[alias]
|
||||
# List aliases
|
||||
la = "!git config -l | grep alias | cut -c 7-"
|
||||
|
||||
# Logging aliases
|
||||
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
|
||||
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
|
||||
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
|
||||
lnc = log --pretty=format:"%h\\ %s\\ [%cn]"
|
||||
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
|
||||
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
|
||||
le = log --oneline --decorate
|
||||
|
||||
# Repo aliases
|
||||
filelog = log -u
|
||||
fl = log -u
|
||||
dl = "!git ll -1"
|
||||
dlc = diff --cached HEAD^
|
||||
dr = "!f() { git diff "$1"^.."$1"; }; f"
|
||||
lc = "!f() { git ll "$1"^.."$1"; }; f"
|
||||
diffr = "!f() { git diff "$1"^.."$1"; }; f"
|
||||
|
||||
d = dif
|
||||
ds = diff --stat
|
||||
dc = diff --cached
|
||||
f = "!git ls-files | grep -i"
|
||||
|
||||
grep = grep -Ii
|
||||
gr = grep -Ii
|
||||
gra = "!f() { A=$(pwd) && TOPLEVEL=$(git rev-parse --show-toplevel) && cd $TOPLEVEL && git grep --full-name -In $1 | xargs -I{} echo $TOPLEVEL/{} && cd $A; }; f"
|
||||
|
||||
rl = ref log
|
||||
|
||||
cl = clone
|
||||
rao = remote add origin
|
||||
pushitgood = push -u origin --all
|
||||
|
||||
r = reset
|
||||
r1 = reset HEAD^
|
||||
r2 = reset HEAD^^
|
||||
rh = reset --hard
|
||||
rh1 = reset HEAD^ --hard
|
||||
rh2 = reset HEAD^^ --hard
|
||||
|
||||
lasttag = describe --tags --abbrev=0
|
||||
lt = describe --tags --abbrev=0
|
||||
|
||||
# Branch aliases
|
||||
s = status -s
|
||||
co = checkout
|
||||
cob = checkout -b
|
||||
com = checkout master
|
||||
# list branches sorted by last modified
|
||||
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
|
||||
|
||||
# File aliases
|
||||
a = add
|
||||
ap = add -p
|
||||
|
||||
c = commit --verbose
|
||||
ca = commit -a --verbose
|
||||
cm = commit -m
|
||||
cam = commit -a -m
|
||||
m = commit --amend --verbose
|
||||
|
||||
ac = !git add . && git commit -am
|
||||
ours = "!f() { git co --ours $@ && git add $@; }; f"
|
||||
theirs = "!f() { git co --theirs $@ && git add $@; }; f"
|
||||
|
||||
# Ignore files
|
||||
assume = update-index --assume-unchanged
|
||||
unassume = update-index --no-assume-unchanged
|
||||
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
|
||||
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
|
||||
assumeall = "!git st -s | awk {'print $2'} | xargs git assume"
|
||||
|
||||
# Stash aliases
|
||||
st = stash
|
||||
sa = stash apply
|
||||
stl = stash list
|
||||
|
||||
[github]
|
||||
user = andrejusk
|
||||
1738
files/home/.p10k.zsh
Normal file
1738
files/home/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
97
files/home/.profile
Normal file
97
files/home/.profile
Normal file
@@ -0,0 +1,97 @@
|
||||
# U _____ u _ _ __ __
|
||||
# \| ___"|/| \ |"| \ \ /"/u
|
||||
# | _|" <| \| |> \ \ / //
|
||||
# | |___ U| |\ |u /\ V /_,-.
|
||||
# |_____| |_| \_| U \_/-(_/
|
||||
# << >> || \\,-.//
|
||||
# (__) (__)(_") (_/(__)
|
||||
#
|
||||
|
||||
# xdg data & config
|
||||
export XDG_DATA_HOME=${XDG_DATA_HOME:-"$HOME/.local/share"}
|
||||
mkdir -p "$XDG_DATA_HOME"
|
||||
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-"$HOME/.config"}
|
||||
mkdir -p "$XDG_CONFIG_HOME"
|
||||
|
||||
# local user binaries
|
||||
local_bin_path="$HOME/.local/bin"
|
||||
if [[ ":$PATH:" != *":$local_bin_path:"* ]]; then
|
||||
export PATH="$local_bin_path:$PATH"
|
||||
fi
|
||||
mkdir -p ~/.local/bin
|
||||
unset local_bin_path
|
||||
|
||||
# homebrew
|
||||
brew_path="/opt/homebrew/bin/brew"
|
||||
if [ -x "$brew_path" ]; then
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
fi
|
||||
unset brew_path
|
||||
|
||||
# workspace
|
||||
export WORKSPACE=${WORKSPACE:-"$HOME/Workspace"}
|
||||
mkdir -p "$WORKSPACE"
|
||||
|
||||
# dotfiles
|
||||
export DOTFILES=${DOTFILES:-"$HOME/.dotfiles"}
|
||||
|
||||
# nvm
|
||||
if [ -z "$NVM_DIR" ]; then
|
||||
export NVM_DIR=${NVM_DIR:-"$HOME/.nvm"}
|
||||
mkdir -p "$NVM_DIR"
|
||||
fi
|
||||
[ -f "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
|
||||
|
||||
# node (default v20 "iron" LTS version)
|
||||
node_alias="$NVM_DIR/alias/lts/iron"
|
||||
if [ -f "$node_alias" ]; then
|
||||
VERSION=`cat $node_alias`
|
||||
if [ -x `command -v nvm` ]; then
|
||||
nvm install "$VERSION" > /dev/null 2>&1 & disown
|
||||
fi
|
||||
node_bin_path="$NVM_DIR/versions/node/$VERSION/bin"
|
||||
if [[ ":$PATH:" != *":$node_bin_path:"* ]]; then
|
||||
export PATH="$node_bin_path:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset node_alias node_bin_path VERSION
|
||||
|
||||
# pyenv
|
||||
export PYENV_ROOT=${PYENV_ROOT:-"$HOME/.pyenv"}
|
||||
pyenv_bin_path="$PYENV_ROOT/bin"
|
||||
if [[ ":$PATH:" != *":$pyenv_bin_path:"* ]]; then
|
||||
export PATH="$pyenv_bin_path:$PATH"
|
||||
fi
|
||||
if [ -x `command -v pyenv` ]; then
|
||||
eval "$(pyenv init --path)"
|
||||
fi
|
||||
unset pyenv_bin_path
|
||||
|
||||
# poetry
|
||||
export POETRY_ROOT=${POETRY_ROOT:-"$HOME/.poetry"}
|
||||
poetry_bin_path="$POETRY_ROOT/bin"
|
||||
if [[ ":$PATH:" != *":$poetry_bin_path:"* ]]; then
|
||||
export PATH="$poetry_bin_path:$PATH"
|
||||
fi
|
||||
unset poetry_bin_path
|
||||
|
||||
# z (jump around)
|
||||
export Z_DATA_DIR=${Z_DATA:-"$XDG_DATA_HOME/z"}
|
||||
export Z_DATA=${Z_DATA:-"$Z_DATA_DIR/data"}
|
||||
export Z_OWNER=${Z_OWNER:-$USER}
|
||||
|
||||
# nix
|
||||
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
||||
. $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||
fi
|
||||
|
||||
# _ _ _ ____
|
||||
# U /"\ u |"| ___ U /"\ u / __"| u
|
||||
# \/ _ \/ U | | u |_"_| \/ _ \/ <\___ \/
|
||||
# / ___ \ \| |/__ | | / ___ \ u___) |
|
||||
# /_/ \_\ |_____| U/| |\u /_/ \_\ |____/>>
|
||||
# \\ >> // \\.-,_|___|_,-.\\ >> )( (__)
|
||||
# (__) (__)(_")("_)\_)-' '-(_/(__) (__)(__)
|
||||
#
|
||||
alias j="z"
|
||||
alias fd=`command -v fdfind`
|
||||
32
files/home/.zshrc
Normal file
32
files/home/.zshrc
Normal file
@@ -0,0 +1,32 @@
|
||||
# https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#how-do-i-configure-instant-prompt
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
source $HOME/.profile
|
||||
|
||||
export POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
|
||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
zstyle ':omz:update' frequency 13
|
||||
|
||||
# https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins
|
||||
plugins=(
|
||||
aliases
|
||||
emoji
|
||||
git
|
||||
history
|
||||
poetry
|
||||
zsh-autosuggestions
|
||||
zsh-syntax-highlighting
|
||||
)
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
Reference in New Issue
Block a user