Update eshell aliases

This commit is contained in:
Jeremy Dormitzer 2019-10-09 09:52:50 -04:00
parent bcdf549f5e
commit c5d858182c

View File

@ -1143,12 +1143,14 @@ Load .dir-locals.el when switching directories:
Some aliases:
#+BEGIN_SRC emacs-lisp
(add-hook 'eshell-mode-hook
(lambda ()
(eshell/alias "php-debug"
"php -d xdebug.remote_enable=on -d xdebug.remote_host=127.0.0.1 -d xdebug.remote_port=9000 -d xdebug.remote_handler=dbgp -d xdebug.idekey=geben -d xdebug.remote_autostart=On $*")
(eshell/alias "sortpom"
"mvn com.github.ekryd.sortpom:sortpom-maven-plugin:sort -Dsort.keepBlankLines -Dsort.sortDependencies=scope,groupId,artifactId -Dsort.createBackupFile=false $*")))
(defvar eshell-aliases
'(("k" . "kubectl $*")
("kctx" . "kubectx $*")))
(add-hook
'eshell-mode-hook
(lambda ()
(dolist (alias eshell-aliases)
(eshell/alias (car alias) (cdr alias)))))
#+END_SRC
* JSON