blob: 407cf3610f1dd68bbf15e8d159e08aeda0e1d039 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
function take --description 'Create a directory and cd to it'
command mkdir $argv
if test $status = 0
switch $argv[(count $argv)]
case '-*'
case '*'
cd $argv[(count $argv)]
return
end
end
end
|