Update fisher & tide, add VS Code configs, add partial i3 config (lock (and suspend) not done)

This commit is contained in:
askiiart 2023-11-19 14:34:47 -06:00
parent 63e8262c07
commit 15f30efa7b
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
72 changed files with 1278 additions and 454 deletions

View file

@ -0,0 +1,20 @@
function _tide_item_python
if test -n "$VIRTUAL_ENV"
python --version | string match -qr "(?<v>[\d.]+)"
string match -qr "^.*/(?<dir>.*)/(?<base>.*)" $VIRTUAL_ENV
# pipenv $VIRTUAL_ENV looks like /home/ilan/.local/share/virtualenvs/pipenv_project-EwRYuc3l
# Detect whether we are using pipenv by looking for 'virtualenvs'. If so, remove the hash at the end.
if test "$dir" = virtualenvs
string match -qr "(?<base>.*)-.*" $base
_tide_print_item python $tide_python_icon' ' "$v ($base)"
else if contains -- "$base" virtualenv venv .venv env # avoid generic names
_tide_print_item python $tide_python_icon' ' "$v ($dir)"
else
_tide_print_item python $tide_python_icon' ' "$v ($base)"
end
else if path is .python-version Pipfile __init__.py pyproject.toml requirements.txt setup.py
python --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item python $tide_python_icon' ' $v
end
end