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
6f1929f8
Commit
6f1929f8
authored
Apr 15, 2011
by
Tristan Carel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation
parent
9b29136e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
emacs.plugin.zsh
plugins/emacs/emacs.plugin.zsh
+1
-2
No files found.
plugins/emacs/emacs.plugin.zsh
View file @
6f1929f8
...
@@ -27,8 +27,7 @@ if "$ZSH/tools/require_tool.sh" emacs 23 2>/dev/null ; then
...
@@ -27,8 +27,7 @@ if "$ZSH/tools/require_tool.sh" emacs 23 2>/dev/null ; then
# jump to the directory of the current buffer
# jump to the directory of the current buffer
function
ecd
{
function
ecd
{
local
cmd
=
"(let ((buf-name (buffer-file-name (window-buffer))))
local
cmd
=
"(let ((buf-name (buffer-file-name (window-buffer))))
(if buf-name
(if buf-name (file-name-directory buf-name)))"
(file-name-directory buf-name)))"
local dir
=
`
$EDITOR
--eval
"
$cmd
"
|
tr
-d
\"
`
local dir
=
`
$EDITOR
--eval
"
$cmd
"
|
tr
-d
\"
`
if
[
-n
"
$dir
"
]
;
then
if
[
-n
"
$dir
"
]
;
then
...
...
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