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
239649ae
Unverified
Commit
239649ae
authored
May 07, 2019
by
Marc Cornellà
Committed by
GitHub
May 07, 2019
Browse files
lib: pass arguments to `d` to dirs (#6924)
Replace the alias with a function. Call `dirs` if arguments are given to `d`.
parents
78b241b1
b0a14907
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/directories.zsh
View file @
239649ae
...
...
@@ -21,7 +21,14 @@ alias 9='cd -9'
alias
md
=
'mkdir -p'
alias
rd
=
rmdir
alias
d
=
'dirs -v | head -10'
function
d
()
{
if
[[
-n
$1
]]
;
then
dirs
"
$@
"
else
dirs
-v
|
head
-10
fi
}
compdef _dirs d
# List directory contents
alias
lsa
=
'ls -lah'
...
...
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