Skip to content

Instantly share code, notes, and snippets.

@lodestone
Created September 22, 2009 19:31
Show Gist options
  • Select an option

  • Save lodestone/191341 to your computer and use it in GitHub Desktop.

Select an option

Save lodestone/191341 to your computer and use it in GitHub Desktop.
function project_list {
for n in ~/projects/*
do
if [ -d $n ]
then
echo `basename $n`
fi
done
}
alias projects=project_list
for n in ~/projects/*
do
if [ -d $n ]
then
alias `basename $n`="cd $n/"
# echo "alias `basename $n`=\"cd $n/\""
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment