Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
2b03b951
Commit
2b03b951
authored
Dec 21, 2010
by
Derek Prior
Browse files
Added function to mkdir and immediately change to it
parent
4fadc302
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/directories.zsh
View file @
2b03b951
...
...
@@ -36,5 +36,9 @@ cd () {
alias
md
=
'mkdir -p'
alias
rd
=
rmdir
alias
d
=
'dirs -v'
alias
d
=
'dirs -v'
\ No newline at end of file
# mkdir & cd to it
function
mcd
()
{
mkdir
-p
"
$1
"
&&
cd
"
$1
"
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment