Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Customize your shell depending on what project you're working on
Python Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
alias
core
kde
projectTypes
.gitignore
_switch
alias.py
core.py
kde.py
projectTypeFactory.py
readme.markdown
switch-init.py
switch.sh

readme.markdown

Features

Available

  • cdproj alias : go to your project directory
  • per-project history : don't clutter your history with stuff from other projects
  • $PATH customization for symfony1/2 : use symfony's console from anywhere
  • interactive alias creation
  • integration with KDE activities

Planned

  • generic function creation
  • per-project type aliases/functions creation

Usage

switch-init

switch-init project [ --type=symfony ]

This will create the shell snippets

switch

switch [project]

With no arguments, unselects the current project if there is one. With one argument, does the same and switches to the specified project.

Requirements

python 2.7 python-Cheetah zsh

How does it work?

switch-init

switch-init is a python script that uses Cheetah templates to generate shell snippets.

switch

switch is a z-shell function that calls previously generated shell snippets

shell-snippets

They are stored in ~/.switch/<project_name>/. in.sh is used when switching to the project, whereas out.sh is used when switching from the project

Something went wrong with that request. Please try again.