Project Switcher is a simple and fast way for you to switch between projects without typing their full path.
Just run the following command to install the application
\curl -sSL https://git.io/vCKDx | bash -s
# This switches to the folder that has been defined in ~/.projects.yml
p [project key]
# Shows all available commands
p --help
# Show all available projects
p --list
You can configure all your projects (they must contain a key, a name and a
path).You can also configure another alias by configuring config.alias
to the
alias you want to use.
# ~/.projects.yml
config:
alias: 'p' # This is the alias used for the switcher.
before_switch: 'clear' # (optional) hooks with commands to be ran.
after_switch: 'pwd' # (optional) hooks with commands to be ran.
projects:
home:
name: 'Home directory'
path: '~/'
before_switch: 'clear' # (optional) Same as before_switch in config, but configurable per project. Runs after global before_switch.
after_switch: 'pwd' # (optional) Same as after_switch in config, but configurable per project. Runs after global after_switch.
If you wish to uninstall project-switcher from your system, run the command below.
p --uninstall