projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6948820
)
zshrc: simplify cdt()
author
Moviuro
<moviuro+grml@gmail.com>
Wed, 3 Jun 2015 21:48:35 +0000
(23:48 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 3 Jun 2015 22:09:58 +0000
(
00:09
+0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
8e1ec13
..
315cec7
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-3137,10
+3137,8
@@
mkcd() {
#f5# Create temporary directory and \kbd{cd} to it
cdt() {
- local t
- t=$(mktemp -d)
- echo "$t"
- builtin cd "$t"
+ builtin cd "$(mktemp -d)"
+ builtin pwd
}
#f5# List files which have been accessed within the last {\it n} days, {\it n} defaults to 1