lal-10 update

This commit is contained in:
2026-04-14 15:46:37 +02:00
parent d393de8e1d
commit d8d5fe4aab
5 changed files with 47 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
# vim: set ft=bash
if ! limited_terminal && [ -x "$(command -v tput)" ]
then
alias reset='tput reset'

View File

@@ -1,3 +1,4 @@
# vim: set ft=bash
function debinstall() {
sudo dpkg -i $1 || (sudo apt install -f && sudo dpkg -i $1)
}
@@ -16,3 +17,9 @@ function gcd() {
echo "No git executable found!"
fi
}
# Local
if [ -f ~/.bash_functions.local ]
then
. "$HOME/.bash_functions.local"
fi

1
home/any/direnv.dirs Normal file
View File

@@ -0,0 +1 @@
.config/direnv

View File

@@ -0,0 +1,38 @@
layout_virtualenv() {
local venv_name=$1
local python_version=${2:-python3}
local venv_path=""
if [ -n "$WORKON_HOME" ]
then
venv_path="${WORKON_HOME}/$venv_name"
else
venv_path=".venv"
fi
if [ ! -d "$venv_path" ]
then
echo "Creating virtualenv '$venv_name'..."
"$python_version" -m venv "$venv_path"
fi
}
layout_activate() {
local venv_name=$1
local venv_path=""
if [ -n "$WORKON_HOME" ]
then
venv_path="${WORKON_HOME}/$venv_name"
else
venv_path=".venv"
fi
if [ ! -d "$venv_path" ]
then
echo "ERROR: virtualenv '$venv_name' not found in $venv_path"
return 1
fi
export VIRTUAL_ENV_DISABLE_PROMPT=1
source "$venv_path/bin/activate"
unset VIRTUAL_ENV_DISABLE_PROMPT
}

View File

@@ -1,6 +1,5 @@
{
"$schema": "https://opencode.ai/config.json",
"theme": "crthaze",
"model": "opencode/gpt-5.2-codex",
"small_model": "opencode/kimi-k2.5",
"autoupdate": true,