mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Fix indentation
This commit is contained in:
parent
9b29136ec6
commit
6f1929f822
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue