summaryrefslogtreecommitdiff
path: root/emacs-helm.sh
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2014-08-18 18:19:43 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2014-08-18 18:19:43 +0200
commit8b99dcc104140fa9d5a7971244171bcc67f98108 (patch)
tree94e480c46f6836656c61d7d2fead19af90716fc1 /emacs-helm.sh
parent6da416f337ea55090e9bf3dd7f2537b1c62b28df (diff)
* emacs-helm.sh: Avoid dependency to readlink by using emacs to resolve symlink (#591).
Diffstat (limited to 'emacs-helm.sh')
-rwxr-xr-xemacs-helm.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/emacs-helm.sh b/emacs-helm.sh
index 3bfc6d66..b59299ca 100755
--- a/emacs-helm.sh
+++ b/emacs-helm.sh
@@ -23,7 +23,6 @@
# Run it from this directory.
TMP="/tmp/helm-cfg.el"
-LOADPATH=$(readlink -f $0 | xargs dirname)
EMACS=emacs
case $1 in
@@ -62,7 +61,7 @@ cat > $TMP <<EOF
(menu-bar-lines . 0)
(fullscreen . nil)))
(blink-cursor-mode -1)
-(add-to-list 'load-path (expand-file-name "$LOADPATH"))
+(add-to-list 'load-path (file-name-directory (file-truename "$0")))
(require 'helm-config)
(helm-mode 1)
(define-key global-map [remap find-file] 'helm-find-files)