feat(zsh): various fixes

This commit is contained in:
2024-01-25 20:00:13 +01:00
parent 3fd73e311a
commit aeaedd8411
5 changed files with 14 additions and 7 deletions

View File

@@ -53,7 +53,7 @@ function pyinit {
DIRNAME=$(basename "$PWD")
if [[ $(pyenv versions | grep "$DIRNAME") ]]; then
if [[ $(pyenv versions | grep -E "/${DIRNAME}$") ]]; then
echo "found existing version with this name, setting..."
pyenv local "$DIRNAME"
return
@@ -101,7 +101,7 @@ function get_dump {
return
fi
selected=$(ssh "$1" docker ps --filter image=postgres:* --format "{{.Names}}" | fzf)
selected=$(ssh "$1" docker ps --format "{{.Names}}" | fzf)
if [[ -z $selected ]]; then
return