function pip3
    set -l cmd $argv[1]
    set -e argv[1]

    switch "$cmd"
        case install list
            command pip3 $cmd --user $argv
        case update upgrade
            pip3 list --outdated --format=legacy $argv | cut -d ' ' -f 1 | xargs -n 1 pip3 install --upgrade $argv
        case '*'
            command pip3 $cmd $argv
    end
end

function pip3
    set -l cmd $argv[1]
    set -e argv[1]

    switch "$cmd"
        case install list
            command pip3 $cmd --user $argv
        case update upgrade
            command pip3 list --user --outdated --format=legacy $argv | cut -d ' ' -f 1 | xargs -n 1 pip3 install --user --upgrade $argv
        case '*'
            command pip3 $cmd $argv
    end
end

Fix installation of user pip packages
Fix installation of user pip packages

Rypac/dotfiles,Rypac/dotfiles,Rypac/dotfiles