lal-10 update
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# vim: set ft=bash
|
||||
if ! limited_terminal && [ -x "$(command -v tput)" ]
|
||||
then
|
||||
alias reset='tput reset'
|
||||
|
||||
@@ -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
1
home/any/direnv.dirs
Normal file
@@ -0,0 +1 @@
|
||||
.config/direnv
|
||||
38
home/any/direnv/.config/direnv/direnvrc
Normal file
38
home/any/direnv/.config/direnv/direnvrc
Normal 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
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user