Skip to content

victorhornet/vpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vector's Project Manager

Small CLI tool to manage my projects folder.

Installation

Install with cargo:

cargo install vector-project-manager

Usage

vpm [COMMAND]

For a list of commands, run vpm --help.

Shell integrations

Example shortcuts using vpm.

zsh

# cd into a project by its ID.
# Usage: pj <ID>
# Example: pj 1
pj() {
    project_path=$(vpm path $1)
    if [ -z "$project_path" ]; then
        return 1
    fi
    cd $project_path
}

# Fuzzy search for a project and cd into it.
# Usage: j <QUERY>
# Example: j some-proj
j() {
    project_path=$(vpm -p search -l 1 $1)
    if [ -z "$project_path" ]; then
        echo "No project found"
        return 1
    fi
    cd $project_path
}

fish

Fish functions can be installed with vpm init fish.

⚠️ This will overwrite your ~/.config/fish/functions/j.fish and ~/.config/fish/functions/pj.fish files.

# cd into a project by its ID.
# Usage: pj <ID>
# Example: pj 1
function pj
    set path (vpm path $argv[1])
    if set -q path[1]
        cd $path
    end
end

# Fuzzy search for a project and cd into it.
# Usage: j <QUERY>
# Example: j some-proj
function j
    set path (vpm -p search -l 1 (echo $argv))
    if set -q path[1]
        cd $path
    else
        echo "No project was found for query: $argv"
    end
end

About

Projects folder manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors