lodestone (owner)

Revisions

gist: 191341 Download_button fork
public
Public Clone URL: git://gist.github.com/191341.git
Embed All Files: show embed
Bash #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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