Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
e8d582ab
Commit
e8d582ab
authored
Jun 13, 2012
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #977 from scialex/better-d
Make the 'd' alias only show the directories that can be cd'd to using the number aliases.
parents
e3d426dc
d693711f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
directories.zsh
lib/directories.zsh
+2
-3
No files found.
lib/directories.zsh
View file @
e8d582ab
...
@@ -36,9 +36,9 @@ cd () {
...
@@ -36,9 +36,9 @@ cd () {
alias
md
=
'mkdir -p'
alias
md
=
'mkdir -p'
alias
rd
=
rmdir
alias
rd
=
rmdir
alias
d
=
'dirs -v'
alias
d
=
'dirs -v
| head -10
'
# mkdir & cd to it
# mkdir & cd to it
function
mcd
()
{
function
mcd
()
{
mkdir
-p
"
$1
"
&&
cd
"
$1
"
;
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